1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel/ixgbe
Sridhar Samudrala 2a9ed5d1fc ixgbe: make 'action' field in struct ixgbe_fdir_filter a u64 value
This field is used to record the RX queue index for a redirect action
passed via ring_cookie field in struct ethtool_rx_flow_spec which is
a u64 value.

For ex: after adding a filter rule to redirect to a VF using ethtool
  # echo 4 > /sys/class/net/p4p1/device/sriov_numvfs
  # ethtool -N p4p1 flow-type ip4 src-ip 192.168.0.1 action 0x100000000

querying for the rule shows the Action as 'Direct to queue 0'

  # ethtool -n p4p1
  4 RX rings available
  Total 1 rules

  Filter: 2045
 	Rule Type: Raw IPv4
	Src IP addr: 192.168.0.1 mask: 0.0.0.0
	Dest IP addr: 0.0.0.0 mask: 255.255.255.255
	TOS: 0x0 mask: 0xff
	Protocol: 0 mask: 0xff
	L4 bytes: 0x0 mask: 0xffffffff
	VLAN EtherType: 0x0 mask: 0xffff
	VLAN: 0x0 mask: 0xffff
	User-defined: 0x0 mask: 0xffffffffffffffff
	Action: Direct to queue 0

With this fix, ethtool will report the right queue index even for VFs.
	Action: Direct to queue 4294967296

Here 4294967296 corresponds to 0x100000000.
We need to update 'ethtool' to report the queue index as a Hex value so
that it is more  user friendly and matches with the 'action' value that
is passed when adding the rule.

Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-04-24 18:04:53 -07:00
..
ixgbe.h ixgbe: make 'action' field in struct ixgbe_fdir_filter a u64 value 2016-04-24 18:04:53 -07:00
ixgbe_82598.c ixgbe: Place SWFW semaphore in known valid state at probe 2016-04-04 17:44:50 -07:00
ixgbe_82599.c ixgbe: Add support for x550em_a 10G MAC type 2016-04-07 16:15:35 -07:00
ixgbe_common.c ixgbe: consolidate the configuration of spoof checking 2016-04-24 17:54:22 -07:00
ixgbe_common.h ixgbe: consolidate the configuration of spoof checking 2016-04-24 17:54:22 -07:00
ixgbe_dcb.c ixgbe: Add support for x550em_a 10G MAC type 2016-04-07 16:15:35 -07:00
ixgbe_dcb.h IXGBE: Set the SW prio_tc values at initialization to the HW setting. 2013-05-21 03:14:21 -07:00
ixgbe_dcb_82598.c ixgbe: convert low_water into an array 2014-04-22 23:07:11 -07:00
ixgbe_dcb_82598.h ixgbe: update date to 2013 2013-02-05 01:44:13 -08:00
ixgbe_dcb_82599.c ixgbe: fix broken PFC with X550 2016-01-08 03:54:08 -08:00
ixgbe_dcb_82599.h ixgbe: clean up checkpatch warnings about CODE_INDENT and LEADING_SPACE 2014-05-23 05:24:04 -07:00
ixgbe_dcb_nl.c ixgbe: Add new support for X550 MAC's 2014-11-11 06:18:56 -08:00
ixgbe_debugfs.c ixgbe: don't check NULL for debugfs_remove_recursive 2014-05-23 05:28:24 -07:00
ixgbe_ethtool.c ixgbe: Add support for x550em_a 10G MAC type 2016-04-07 16:15:35 -07:00
ixgbe_fcoe.c ixgbe: Fix MDD events generated when FCoE+SRIOV are enabled 2016-01-08 04:15:00 -08:00
ixgbe_fcoe.h ixgbe: adds x550 specific FCoE offloads 2015-04-10 00:15:55 -07:00
ixgbe_lib.c ixgbe: Add support for x550em_a 10G MAC type 2016-04-07 16:15:35 -07:00
ixgbe_main.c ixgbe: consolidate the configuration of spoof checking 2016-04-24 17:54:22 -07:00
ixgbe_mbx.c ixgbe: Add support for x550em_a 10G MAC type 2016-04-07 16:15:35 -07:00
ixgbe_mbx.h ixgbe: Make all unchanging ops structures const 2016-04-04 13:36:58 -07:00
ixgbe_model.h ixgbe: Extend cls_u32 offload to support UDP headers 2016-04-04 17:44:56 -07:00
ixgbe_phy.c ixgbe: Always turn PHY power on when requested 2015-12-03 02:45:13 -08:00
ixgbe_phy.h ixgbe: Add support for SFPs with retimer 2016-04-07 17:06:54 -07:00
ixgbe_ptp.c ixgbe: Add support for x550em_a 10G MAC type 2016-04-07 16:15:35 -07:00
ixgbe_sriov.c ixgbe: set VLAN spoof checking unconditionally 2016-04-24 17:57:07 -07:00
ixgbe_sriov.h ixgbe: add a callback to set the maximum transmit bitrate 2016-04-04 17:44:46 -07:00
ixgbe_sysfs.c ixgbe: add Linux NICS mailing list to contact info 2014-03-12 19:05:30 -07:00
ixgbe_type.h ixgbe: Add KR backplane support for x550em_a 2016-04-07 17:14:06 -07:00
ixgbe_x540.c ixgbe: Place SWFW semaphore in known valid state at probe 2016-04-04 17:44:50 -07:00
ixgbe_x540.h ixgbe: Place SWFW semaphore in known valid state at probe 2016-04-04 17:44:50 -07:00
ixgbe_x550.c ixgbe: fix default mac->ops.setup_link for X550EM 2016-04-24 18:01:06 -07:00
Makefile ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00