diff options
author | Vasu Dev <vasu.dev@intel.com> | 2009-08-14 08:41:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-14 19:12:06 -0400 |
commit | b85daa5324a3c9e560a4351c17d18f49c647eb5c (patch) | |
tree | 0616b7adcb0b785560b4826a211517aeb84f03d3 /net/8021q/vlan.c | |
parent | cf9911166113e471e1796eaf273982d8e43b138d (diff) |
vlan: adds fcoe offload related net_device_ops and updates fcoe_ddp_xid field
Adds fcoe offload related net_device_ops functions vlan_dev_fcoe_ddp_setup
and vlan_dev_fcoe_ddp_done, their implementation simply calls real eth device
net_device_ops for FCoE DDP setup and done operations.
Updates VLAN netdev field value for fcoe_ddp_xid from real eth device netdev.
Above changes are required for fcoe DDP offload working on a VLAN interface.
Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index a1f16303703a..e814794b0a1a 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -391,6 +391,9 @@ static void vlan_transfer_features(struct net_device *dev, | |||
391 | vlandev->features &= ~dev->vlan_features; | 391 | vlandev->features &= ~dev->vlan_features; |
392 | vlandev->features |= dev->features & dev->vlan_features; | 392 | vlandev->features |= dev->features & dev->vlan_features; |
393 | vlandev->gso_max_size = dev->gso_max_size; | 393 | vlandev->gso_max_size = dev->gso_max_size; |
394 | #if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE) | ||
395 | vlandev->fcoe_ddp_xid = dev->fcoe_ddp_xid; | ||
396 | #endif | ||
394 | 397 | ||
395 | if (old_features != vlandev->features) | 398 | if (old_features != vlandev->features) |
396 | netdev_features_change(vlandev); | 399 | netdev_features_change(vlandev); |