Message ID | 1408760230-7457-6-git-send-email-vysevich@gmail.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
From: vyasevich@gmail.com Date: Fri, 22 Aug 2014 22:17:07 -0400 > @@ -2295,7 +2295,7 @@ static netdev_tx_t i40e_xmit_frame_ring(struct sk_buff *skb, > goto out_drop; > > /* obtain protocol of skb */ > - protocol = skb->protocol; > + protocol = get_vlan_protocol(skb); I don't think this even compiles. It's "vlan_get_protocol" not "get_vlan_protocol". -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 08/23/2014 02:43 PM, David Miller wrote: > From: vyasevich@gmail.com > Date: Fri, 22 Aug 2014 22:17:07 -0400 > >> @@ -2295,7 +2295,7 @@ static netdev_tx_t i40e_xmit_frame_ring(struct sk_buff *skb, >> goto out_drop; >> >> /* obtain protocol of skb */ >> - protocol = skb->protocol; >> + protocol = get_vlan_protocol(skb); > > I don't think this even compiles. > > It's "vlan_get_protocol" not "get_vlan_protocol". > Yes. I notice this one as well this morning, but didn't have time to fix. Apologies. -vlad -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c index a51aa37..3247057 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c +++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c @@ -2295,7 +2295,7 @@ static netdev_tx_t i40e_xmit_frame_ring(struct sk_buff *skb, goto out_drop; /* obtain protocol of skb */ - protocol = skb->protocol; + protocol = get_vlan_protocol(skb); /* record the location of the first descriptor for this packet */ first = &tx_ring->tx_bi[tx_ring->next_to_use];