linux/drivers/net/ethernet/intel/ixgbe
Sridhar Samudrala b5aea3de88 ixgbe: Fix cls_u32 offload support for L4 ports
Fix support for 16 bit source/dest port matches in ixgbe model.
u32 uses a single 32-bit key value for both source and destination ports
starting at offset 0. So replace the 2 functions with a single function
that takes this key value/mask to program both source and dest ports.

Verified with the following filter:

 #tc qdisc add dev p4p1 ingress
 #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
	handle 1: u32 divisor 1
 #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
	handle 800:0:10 u32 ht 800: link 1: \
	offset at 0 mask 0f00 shift 6 plus 0 eat match ip protocol 6 ff
 #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
	handle 1:0:10 u32 ht 1: \
	match tcp src 1024 ffff match tcp dst 80 ffff action drop
 #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
	handle 1:0:11 u32 ht 1: \
	match tcp src 1025 ffff action drop
 #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
	handle 1:0:12 u32 ht 1: \
	match tcp dst 81 ffff action drop

Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-03-29 23:23:04 -07:00
..
Makefile ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe.h ixgbe: call ndo_stop() instead of dev_close() when running offline selftest 2016-03-29 22:41:33 -07:00
ixgbe_82598.c ixgbe: Add support for adding/removing VLAN on PF bypassing the VLVF 2015-12-12 01:29:28 -08:00
ixgbe_82599.c ixgbe: Clear stale pool mappings 2015-12-12 02:05:21 -08:00
ixgbe_common.c ixgbe: Clear stale pool mappings 2015-12-12 02:05:21 -08:00
ixgbe_common.h ixgbe: Add support for adding/removing VLAN on PF bypassing the VLVF 2015-12-12 01:29:28 -08:00
ixgbe_dcb.c ixgbe: Fill at least min credits to a TC credit refills 2016-01-08 03:25:14 -08: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: call ndo_stop() instead of dev_close() when running offline selftest 2016-03-29 22:41:33 -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 net: provide generic busy polling to all NAPI drivers 2015-11-18 16:17:42 -05:00
ixgbe_main.c ixgbe: Fix cls_u32 offload support for fields with masks 2016-03-29 23:12:30 -07:00
ixgbe_mbx.c ixgbe: Add new support for X550 MAC's 2014-11-11 06:18:56 -08:00
ixgbe_mbx.h ixgbe, ixgbevf: Add new mbox API xcast mode 2015-10-23 05:52:26 -07:00
ixgbe_model.h ixgbe: Fix cls_u32 offload support for L4 ports 2016-03-29 23:23:04 -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 logic to reset CS4227 when needed 2015-09-23 22:34:29 -07:00
ixgbe_ptp.c ixgbe: Update PTP to support X550EM_x devices 2015-12-03 02:32:12 -08:00
ixgbe_sriov.c ixgbe: Fix bugs in ixgbe_clear_vf_vlans() 2015-12-29 19:16:08 -08:00
ixgbe_sriov.h ixgbe: Add new ndo to trust VF 2015-10-23 05:48:53 -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: Fix MDD events generated when FCoE+SRIOV are enabled 2016-01-08 04:15:00 -08:00
ixgbe_x540.c ixgbe: Clear stale pool mappings 2015-12-12 02:05:21 -08:00
ixgbe_x540.h ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00
ixgbe_x550.c ixgbe: Use udelay to avoid sleeping while atomic 2016-03-29 22:37:17 -07:00