diff options
author | Patrick McHardy <kaber@trash.net> | 2013-04-18 22:04:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-19 14:45:27 -0400 |
commit | 80d5c3689b886308247da295a228a54df49a44f6 (patch) | |
tree | ce7b1e6898c3f9fea945e67fd06b125dfcc61fe7 /drivers/net/ethernet/neterion/vxge/vxge-main.c | |
parent | f646968f8f7c624587de729115d802372b9063dd (diff) |
net: vlan: prepare for 802.1ad VLAN filtering offload
Change the rx_{add,kill}_vid callbacks to take a protocol argument in
preparation of 802.1ad support. The protocol argument used so far is
always htons(ETH_P_8021Q).
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge/vxge-main.c')
-rw-r--r-- | drivers/net/ethernet/neterion/vxge/vxge-main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index e9e58aadf87e..a9396142201c 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c | |||
@@ -3300,12 +3300,13 @@ static void vxge_tx_watchdog(struct net_device *dev) | |||
3300 | /** | 3300 | /** |
3301 | * vxge_vlan_rx_add_vid | 3301 | * vxge_vlan_rx_add_vid |
3302 | * @dev: net device pointer. | 3302 | * @dev: net device pointer. |
3303 | * @proto: vlan protocol | ||
3303 | * @vid: vid | 3304 | * @vid: vid |
3304 | * | 3305 | * |
3305 | * Add the vlan id to the devices vlan id table | 3306 | * Add the vlan id to the devices vlan id table |
3306 | */ | 3307 | */ |
3307 | static int | 3308 | static int |
3308 | vxge_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 3309 | vxge_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) |
3309 | { | 3310 | { |
3310 | struct vxgedev *vdev = netdev_priv(dev); | 3311 | struct vxgedev *vdev = netdev_priv(dev); |
3311 | struct vxge_vpath *vpath; | 3312 | struct vxge_vpath *vpath; |
@@ -3323,14 +3324,15 @@ vxge_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
3323 | } | 3324 | } |
3324 | 3325 | ||
3325 | /** | 3326 | /** |
3326 | * vxge_vlan_rx_add_vid | 3327 | * vxge_vlan_rx_kill_vid |
3327 | * @dev: net device pointer. | 3328 | * @dev: net device pointer. |
3329 | * @proto: vlan protocol | ||
3328 | * @vid: vid | 3330 | * @vid: vid |
3329 | * | 3331 | * |
3330 | * Remove the vlan id from the device's vlan id table | 3332 | * Remove the vlan id from the device's vlan id table |
3331 | */ | 3333 | */ |
3332 | static int | 3334 | static int |
3333 | vxge_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 3335 | vxge_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) |
3334 | { | 3336 | { |
3335 | struct vxgedev *vdev = netdev_priv(dev); | 3337 | struct vxgedev *vdev = netdev_priv(dev); |
3336 | struct vxge_vpath *vpath; | 3338 | struct vxge_vpath *vpath; |