]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/chelsio/cxgb/sge.c
net: vlan: add protocol argument to packet tagging functions
[~andy/linux] / drivers / net / ethernet / chelsio / cxgb / sge.c
index f85e0659432b2aec8f16fe0f948dcb4bc751d07f..8061fb0ef7edd5b8b9d5bca8d8d6a3e270c5314a 100644 (file)
@@ -1386,7 +1386,7 @@ static void sge_rx(struct sge *sge, struct freelQ *fl, unsigned int len)
 
        if (p->vlan_valid) {
                st->vlan_xtract++;
-               __vlan_hwaccel_put_tag(skb, ntohs(p->vlan));
+               __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), ntohs(p->vlan));
        }
        netif_receive_skb(skb);
 }