]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add ndo_fcoe_enable/ndo_fcoe_disable to net_device_ops
authorYi Zou <yi.zou@intel.com>
Mon, 31 Aug 2009 12:31:36 +0000 (12:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2009 08:24:20 +0000 (01:24 -0700)
commit06bb5c4f58322e6a16b90f35c19a4f5cd127ac82
treeeec57859eb017f0a4288cbc88b47e9b9167468c5
parent8ce0bae73984a7a2394d1b274ad74ebd9ec65466
net: Add ndo_fcoe_enable/ndo_fcoe_disable to net_device_ops

Add ndo_fcoe_enable/_disable to net_device_ops so the corresponding
HW can initialize itself for FCoE traffic or clean up after FCoE traffic is
done. This is expected to be called by the kernel FCoE stack upon receiving
a request for creating an FCoE instance on the corresponding netdev interface.
When implemented by the actual HW, the HW driver check the op code to perform
corresponding initialization or clean up for FCoE. The initialization normally
includes allocating extra queues for FCoE, setting corresponding HW registers
for FCoE, indicating FCoE offload features via netdev, etc. The clean-up would
include releasing the resources allocated for FCoE.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h