linux/drivers/net/ethernet/intel/ice
Michal Swiatkowski 7327871572 ice: tc: allow zero flags in parsing tc flower
The check for flags is done to not pass empty lookups to adding switch
rule functions. Since metadata is always added to lookups there is no
need to check against the flag.

It is also fixing the problem with such rule:
$ tc filter add dev gtp_dev ingress protocol ip prio 0 flower \
	enc_dst_port 2123 action drop
Switch block in case of GTP can't parse the destination port, because it
should always be set to GTP specific value. The same with ethertype. The
result is that there is no other matching criteria than GTP tunnel. In
this case flags is 0, rule can't be added only because of defensive
check against flags.

Fixes: 9a225f81f5 ("ice: Support GTP-U and GTP-C offload in switchdev")
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2024-04-16 10:54:20 -07:00
..
ice.h ice: Fix debugfs with devlink reload 2024-02-12 10:12:42 -08:00
ice_adminq_cmd.h ice: Refactor FW data type and fix bitmap casting issue 2024-03-25 09:57:03 -07:00
ice_arfs.c net: introduce include/net/rps.h 2024-03-07 21:12:43 -08:00
ice_arfs.h
ice_base.c overflow: Change DEFINE_FLEX to take __counted_by member 2024-03-22 16:25:31 -07:00
ice_base.h ice: make ice_vsi_cfg_txq() static 2024-02-02 09:13:13 -08:00
ice_cgu_regs.h
ice_common.c ice: Fix freeing uninitialized pointers 2024-04-03 09:15:18 -07:00
ice_common.h ice: cleanup line splitting for context set functions 2024-03-04 10:28:15 -08:00
ice_controlq.c ice: Add helper function ice_is_generic_mac 2024-02-12 10:06:18 -08:00
ice_controlq.h
ice_dcb.c ice: cleanup inconsistent code 2023-12-18 11:20:43 -08:00
ice_dcb.h
ice_dcb_lib.c ice: field prep conversion 2023-12-18 11:20:26 -08:00
ice_dcb_lib.h
ice_dcb_nl.c ice: field get conversion 2023-12-18 11:20:43 -08:00
ice_dcb_nl.h
ice_ddp.c overflow: Change DEFINE_FLEX to take __counted_by member 2024-03-22 16:25:31 -07:00
ice_ddp.h
ice_debugfs.c ice: Fix debugfs with devlink reload 2024-02-12 10:12:42 -08:00
ice_devids.h ice: introduce new E825C devices family 2024-02-12 09:57:06 -08:00
ice_devlink.c ice: Remove and readd netdev during devlink reload 2024-02-12 10:11:53 -08:00
ice_devlink.h
ice_dpll.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
ice_dpll.h
ice_eswitch.c ice: field prep conversion 2023-12-18 11:20:26 -08:00
ice_eswitch.h
ice_eswitch_br.c
ice_eswitch_br.h
ice_ethtool.c ice: Fix freeing uninitialized pointers 2024-04-03 09:15:18 -07:00
ice_ethtool.h
ice_ethtool_fdir.c ice: field get conversion 2023-12-18 11:20:43 -08:00
ice_fdir.c ice: field prep conversion 2023-12-18 11:20:26 -08:00
ice_fdir.h
ice_flex_pipe.c ice: field prep conversion 2023-12-18 11:20:26 -08:00
ice_flex_pipe.h ice: enable symmetric-xor RSS for Toeplitz hash function 2023-12-13 22:07:17 -08:00
ice_flex_type.h ice: enable symmetric-xor RSS for Toeplitz hash function 2023-12-13 22:07:17 -08:00
ice_flow.c ice: enable symmetric-xor RSS for Toeplitz hash function 2023-12-13 22:07:17 -08:00
ice_flow.h ice: Implement RSS settings for GTP using ethtool 2024-03-06 09:31:49 -08:00
ice_fltr.c
ice_fltr.h
ice_fw_update.c
ice_fw_update.h
ice_fwlog.c ice: Fix debugfs with devlink reload 2024-02-12 10:12:42 -08:00
ice_fwlog.h ice: add ability to read and configure FW log data 2023-12-14 09:50:58 -08:00
ice_gnss.c
ice_gnss.h
ice_hw_autogen.h ice: Enable SW interrupt from FW for LL TS 2024-01-02 11:18:32 -08:00
ice_hwmon.c
ice_hwmon.h
ice_idc.c
ice_idc_int.h
ice_irq.c
ice_irq.h
ice_lag.c Including fixes from bpf, WiFi and netfilter. 2024-03-28 13:09:37 -07:00
ice_lag.h ice: Add check for lport extraction to LAG init 2024-02-14 17:58:45 -08:00
ice_lan_tx_rx.h ice: Support RX hash XDP hint 2023-12-13 16:16:40 -08:00
ice_lib.c ice: fix memory corruption bug with suspend and rebuild 2024-03-25 09:57:21 -07:00
ice_lib.h ice: do not disable Tx queues twice in ice_down() 2024-03-04 10:33:44 -08:00
ice_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-11 20:38:36 -07:00
ice_nvm.c ice: field get conversion 2023-12-18 11:20:43 -08:00
ice_nvm.h
ice_osdep.h net: intel: fix old compiler regressions 2024-02-07 09:15:27 -08:00
ice_pf_vsi_vlan_ops.c
ice_pf_vsi_vlan_ops.h
ice_protocol_type.h
ice_ptp.c ice: stop destroying and reinitalizing Tx tracker during reset 2024-01-30 11:49:04 +01:00
ice_ptp.h ice: factor out ice_ptp_rebuild_owner() 2024-01-30 11:49:04 +01:00
ice_ptp_consts.h
ice_ptp_hw.c
ice_ptp_hw.h ice: Enable SW interrupt from FW for LL TS 2024-01-02 11:18:32 -08:00
ice_repr.c
ice_repr.h
ice_sbq_cmd.h
ice_sched.c overflow: Change DEFINE_FLEX to take __counted_by member 2024-03-22 16:25:31 -07:00
ice_sched.h
ice_sriov.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
ice_sriov.h
ice_switch.c Including fixes from bpf, WiFi and netfilter. 2024-03-28 13:09:37 -07:00
ice_switch.h ice: Refactor FW data type and fix bitmap casting issue 2024-03-25 09:57:03 -07:00
ice_tc_lib.c ice: tc: allow zero flags in parsing tc flower 2024-04-16 10:54:20 -07:00
ice_tc_lib.h
ice_trace.h
ice_txrx.c ice: remove redundant xdp_rxq_info registration 2024-01-24 16:24:06 -08:00
ice_txrx.h ice: work on pre-XDP prog frag count 2024-01-24 16:24:06 -08:00
ice_txrx_lib.c ice: Add a new counter for Rx EIPE errors 2024-02-02 09:13:13 -08:00
ice_txrx_lib.h ice: work on pre-XDP prog frag count 2024-01-24 16:24:06 -08:00
ice_type.h ice: Add helper function ice_is_generic_mac 2024-02-12 10:06:18 -08:00
ice_vf_lib.c ice: remove vf->lan_vsi_num field 2024-03-04 10:25:07 -08:00
ice_vf_lib.h ice: remove vf->lan_vsi_num field 2024-03-04 10:25:07 -08:00
ice_vf_lib_private.h ice: replace ice_vf_recreate_vsi() with ice_vf_reconfig_vsi() 2024-01-02 11:18:32 -08:00
ice_vf_mbx.c
ice_vf_mbx.h
ice_vf_vsi_vlan_ops.c ice: fix enabling RX VLAN filtering 2024-04-03 09:16:19 -07:00
ice_vf_vsi_vlan_ops.h
ice_virtchnl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
ice_virtchnl.h ice: use relative VSI index for VFs instead of PF VSI number 2024-03-04 10:24:13 -08:00
ice_virtchnl_allowlist.c ice: virtchnl: stop pretending to support RSS over AQ or registers 2024-03-05 09:49:21 -08:00
ice_virtchnl_allowlist.h
ice_virtchnl_fdir.c ice: remove unnecessary duplicate checks for VF VSI ID 2024-03-04 10:23:19 -08:00
ice_virtchnl_fdir.h
ice_vlan.h
ice_vlan_mode.c
ice_vlan_mode.h
ice_vsi_vlan_lib.c ice: fix pre-shifted bit usage 2023-12-18 11:20:43 -08:00
ice_vsi_vlan_lib.h
ice_vsi_vlan_ops.c
ice_vsi_vlan_ops.h
ice_xsk.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
ice_xsk.h
Makefile ice: configure FW logging 2023-12-14 09:50:48 -08:00