aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorYi Zou <[email protected]>2012-12-06 06:23:27 +0000
committerRobert Love <[email protected]>2012-12-14 10:38:55 -0800
commit8106fb4790c33547a034db53f7658bccd3cfbf6b (patch)
tree6412d80ba43bbf6d6e95b57e33debd49591882ba /tools/perf/util/scripting-engines/trace-event-perl.c
parent8e6c5363dc52afbc60011c2c079bf4c4d26b1272 (diff)
fcoe: prep work to start consolidate the usage of fcoe_netdev
Currently, in the default kernel fcoe driver, it is needed to get to the underlying private per fcoe transport's private structure, e.g., fcoe_interface in fcoe.ko, and returns the associated netdev. The similar logic exists in other fcoe drivers, e.g., bnx2fc, so we add a function pointer into the common fcoe_port struct to allow individual fcoe transport implementaion (fcoe and bnx2fc) to get the corresponding netdev associated with a give lport. Then a inline fcoe_get_netdev() is added as part of libfcoe for all underlying fcoe transport drivers to use regardless of its individual fcoe transport driver, and also allows move more common code such as fcoe_link_speed_update or fcoe_ctlr_get_lesb to be in libfcoe, rather than specific to fcoe. This patch is a prep work that adds aforementioned fucntion pointer, and followed by the actual code changes to make use of it. Signed-off-by: Yi Zou <[email protected]> Cc: Bhanu Prakash Gollapudi <[email protected]> Tested-by: Marcus Dennis <[email protected]> Signed-off-by: Robert Love <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions