diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-11 14:26:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-11 14:26:58 -0400 |
commit | 3c709f8fb43e07a0403bba4a8ca7ba00ab874994 (patch) | |
tree | 9efc1e2bf6930851f0224f525b6cde0f5297fa61 /drivers/net/benet | |
parent | 0074820978004cc484b132d7a9ce0df414660d9d (diff) | |
parent | 9bbc052d5e63512b0ce4e201ea97e12fba9fda82 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-3.6
Conflicts:
drivers/net/benet/be_main.c
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be.h | 2 | ||||
-rw-r--r-- | drivers/net/benet/be_cmds.c | 2 | ||||
-rw-r--r-- | drivers/net/benet/be_main.c | 25 |
3 files changed, 16 insertions, 13 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index a0b4743d7224..41bbc32123f8 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
@@ -212,7 +212,7 @@ struct be_rx_stats { | |||
212 | 212 | ||
213 | struct be_rx_compl_info { | 213 | struct be_rx_compl_info { |
214 | u32 rss_hash; | 214 | u32 rss_hash; |
215 | u16 vid; | 215 | u16 vlan_tag; |
216 | u16 pkt_size; | 216 | u16 pkt_size; |
217 | u16 rxq_idx; | 217 | u16 rxq_idx; |
218 | u16 mac_id; | 218 | u16 mac_id; |
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 0fc06d363806..5fedc27c8839 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c | |||
@@ -133,7 +133,7 @@ static void be_async_grp5_pvid_state_process(struct be_adapter *adapter, | |||
133 | struct be_async_event_grp5_pvid_state *evt) | 133 | struct be_async_event_grp5_pvid_state *evt) |
134 | { | 134 | { |
135 | if (evt->enabled) | 135 | if (evt->enabled) |
136 | adapter->pvid = evt->tag; | 136 | adapter->pvid = le16_to_cpu(evt->tag); |
137 | else | 137 | else |
138 | adapter->pvid = 0; | 138 | adapter->pvid = 0; |
139 | } | 139 | } |
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 7b19931acba1..3fb4a1f465e1 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -1017,7 +1017,8 @@ static void be_rx_compl_process(struct be_adapter *adapter, | |||
1017 | kfree_skb(skb); | 1017 | kfree_skb(skb); |
1018 | return; | 1018 | return; |
1019 | } | 1019 | } |
1020 | vlan_hwaccel_receive_skb(skb, adapter->vlan_grp, rxcp->vid); | 1020 | vlan_hwaccel_receive_skb(skb, adapter->vlan_grp, |
1021 | rxcp->vlan_tag); | ||
1021 | } else { | 1022 | } else { |
1022 | netif_receive_skb(skb); | 1023 | netif_receive_skb(skb); |
1023 | } | 1024 | } |
@@ -1077,7 +1078,8 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter, | |||
1077 | if (likely(!rxcp->vlanf)) | 1078 | if (likely(!rxcp->vlanf)) |
1078 | napi_gro_frags(&eq_obj->napi); | 1079 | napi_gro_frags(&eq_obj->napi); |
1079 | else | 1080 | else |
1080 | vlan_gro_frags(&eq_obj->napi, adapter->vlan_grp, rxcp->vid); | 1081 | vlan_gro_frags(&eq_obj->napi, adapter->vlan_grp, |
1082 | rxcp->vlan_tag); | ||
1081 | } | 1083 | } |
1082 | 1084 | ||
1083 | static void be_parse_rx_compl_v1(struct be_adapter *adapter, | 1085 | static void be_parse_rx_compl_v1(struct be_adapter *adapter, |
@@ -1106,9 +1108,9 @@ static void be_parse_rx_compl_v1(struct be_adapter *adapter, | |||
1106 | AMAP_GET_BITS(struct amap_eth_rx_compl_v1, rsshash, rxcp); | 1108 | AMAP_GET_BITS(struct amap_eth_rx_compl_v1, rsshash, rxcp); |
1107 | if (rxcp->vlanf) { | 1109 | if (rxcp->vlanf) { |
1108 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v1, vtm, | 1110 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v1, vtm, |
1109 | compl); | 1111 | compl); |
1110 | rxcp->vid = AMAP_GET_BITS(struct amap_eth_rx_compl_v1, vlan_tag, | 1112 | rxcp->vlan_tag = AMAP_GET_BITS(struct amap_eth_rx_compl_v1, vlan_tag, |
1111 | compl); | 1113 | compl); |
1112 | } | 1114 | } |
1113 | } | 1115 | } |
1114 | 1116 | ||
@@ -1138,9 +1140,9 @@ static void be_parse_rx_compl_v0(struct be_adapter *adapter, | |||
1138 | AMAP_GET_BITS(struct amap_eth_rx_compl_v0, rsshash, rxcp); | 1140 | AMAP_GET_BITS(struct amap_eth_rx_compl_v0, rsshash, rxcp); |
1139 | if (rxcp->vlanf) { | 1141 | if (rxcp->vlanf) { |
1140 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v0, vtm, | 1142 | rxcp->vtm = AMAP_GET_BITS(struct amap_eth_rx_compl_v0, vtm, |
1141 | compl); | 1143 | compl); |
1142 | rxcp->vid = AMAP_GET_BITS(struct amap_eth_rx_compl_v0, vlan_tag, | 1144 | rxcp->vlan_tag = AMAP_GET_BITS(struct amap_eth_rx_compl_v0, vlan_tag, |
1143 | compl); | 1145 | compl); |
1144 | } | 1146 | } |
1145 | } | 1147 | } |
1146 | 1148 | ||
@@ -1170,10 +1172,11 @@ static struct be_rx_compl_info *be_rx_compl_get(struct be_rx_obj *rxo) | |||
1170 | rxcp->vlanf = 0; | 1172 | rxcp->vlanf = 0; |
1171 | 1173 | ||
1172 | if (!lancer_chip(adapter)) | 1174 | if (!lancer_chip(adapter)) |
1173 | rxcp->vid = swab16(rxcp->vid); | 1175 | rxcp->vlan_tag = swab16(rxcp->vlan_tag); |
1174 | 1176 | ||
1175 | if ((adapter->pvid == rxcp->vid) && | 1177 | if (((adapter->pvid & VLAN_VID_MASK) == |
1176 | !adapter->vlan_tag[rxcp->vid]) | 1178 | (rxcp->vlan_tag & VLAN_VID_MASK)) && |
1179 | !adapter->vlan_tag[rxcp->vlan_tag]) | ||
1177 | rxcp->vlanf = 0; | 1180 | rxcp->vlanf = 0; |
1178 | } | 1181 | } |
1179 | 1182 | ||