linux/drivers/net/ethernet/intel/ice
Asbjørn Sloth Tønnesen 5a1b015d52 ice: flower: validate encapsulation control flags
Encapsulation control flags are currently not used anywhere,
so all flags are currently unsupported by all drivers.

This patch adds validation of this assumption, so that
encapsulation flags may be used in the future.

In case any encapsulation control flags are masked,
flow_rule_match_has_enc_control_flags() sets a NL extended
error message, and we return -EOPNOTSUPP.

Only compile tested.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Davide Caratti <dcaratti@redhat.com>
Link: https://lore.kernel.org/r/20240609173358.193178-6-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-06-12 17:56:01 -07:00
..
devlink ice: check for unregistering correct number of devlink params 2024-05-29 18:57:02 -07:00
Makefile ice: move devlink port code to a separate file 2024-04-01 09:06:28 -07:00
ice.h ice: map XDP queues to vectors in ice_vsi_map_rings_to_vectors() 2024-06-05 19:27:56 -07:00
ice_adapter.c ice: avoid the PTP hardware semaphore in gettimex64 path 2024-04-01 08:58:09 -07:00
ice_adapter.h ice: avoid the PTP hardware semaphore in gettimex64 path 2024-04-01 08:58:09 -07:00
ice_adminq_cmd.h ice: Add NAC Topology device capability parser 2024-06-01 15:51:51 -07:00
ice_arfs.c
ice_arfs.h
ice_base.c ice: map XDP queues to vectors in ice_vsi_map_rings_to_vectors() 2024-06-05 19:27:56 -07:00
ice_base.h
ice_cgu_regs.h ice: Add support for E825-C TS PLL handling 2024-06-01 15:51:51 -07:00
ice_common.c ice: Add NAC Topology device capability parser 2024-06-01 15:51:51 -07:00
ice_common.h ice: Introduce ETH56G PHY model for E825C products 2024-06-01 15:51:51 -07:00
ice_controlq.c
ice_controlq.h
ice_dcb.c
ice_dcb.h
ice_dcb_lib.c ice: move ice_devlink.[ch] to devlink folder 2024-04-01 08:58:09 -07:00
ice_dcb_lib.h
ice_dcb_nl.c
ice_dcb_nl.h
ice_ddp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
ice_ddp.h ice: Support 5 layer topology 2024-04-22 13:05:19 -07:00
ice_debugfs.c ice: ensure the copied buf is NUL terminated 2024-04-25 19:23:11 -07:00
ice_devids.h ice: update E830 device ids and comments 2024-05-06 09:18:48 -07:00
ice_dpll.c
ice_dpll.h
ice_eswitch.c ice: remove correct filters during eswitch release 2024-05-08 09:24:43 -07:00
ice_eswitch.h
ice_eswitch_br.c
ice_eswitch_br.h
ice_ethtool.c ice: Interpret .set_channels() input differently 2024-05-23 13:02:26 +02:00
ice_ethtool.h
ice_ethtool_fdir.c ice: Implement 'flow-type ether' rules 2024-04-12 10:34:24 -07:00
ice_fdir.c ice: Implement 'flow-type ether' rules 2024-04-12 10:34:24 -07:00
ice_fdir.h ice: Implement 'flow-type ether' rules 2024-04-12 10:34:24 -07:00
ice_flex_pipe.c
ice_flex_pipe.h
ice_flex_type.h ice: Add support for PFCP hardware offload in switchdev 2024-04-01 10:49:29 +01:00
ice_flow.c
ice_flow.h
ice_fltr.c
ice_fltr.h
ice_fw_update.c ice: Add tx_scheduling_layers devlink param 2024-04-22 13:05:19 -07:00
ice_fw_update.h ice: Add tx_scheduling_layers devlink param 2024-04-22 13:05:19 -07:00
ice_fwlog.c
ice_fwlog.h
ice_gnss.c
ice_gnss.h
ice_hw_autogen.h ice: Adjust PTP init for 2x50G E825C devices 2024-06-01 15:51:52 -07:00
ice_hwmon.c
ice_hwmon.h
ice_idc.c
ice_idc_int.h
ice_irq.c
ice_irq.h
ice_lag.c
ice_lag.h
ice_lan_tx_rx.h net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00
ice_lib.c ice: use irq_update_affinity_hint() 2024-06-10 19:52:45 -07:00
ice_lib.h ice: refactor struct ice_vsi_cfg_params to be inside of struct ice_vsi 2024-05-06 09:21:00 -07:00
ice_main.c ice: use irq_update_affinity_hint() 2024-06-10 19:52:45 -07:00
ice_nvm.c ice: fix reads from NVM Shadow RAM on E830 and E825-C devices 2024-06-05 19:27:55 -07:00
ice_nvm.h ice: Add tx_scheduling_layers devlink param 2024-04-22 13:05:19 -07:00
ice_osdep.h
ice_pf_vsi_vlan_ops.c
ice_pf_vsi_vlan_ops.h
ice_protocol_type.h ice: Add support for PFCP hardware offload in switchdev 2024-04-01 10:49:29 +01:00
ice_ptp.c ice: add and use roundup_u64 instead of open coding equivalent 2024-06-10 19:52:44 -07:00
ice_ptp.h ice: Introduce ETH56G PHY model for E825C products 2024-06-01 15:51:51 -07:00
ice_ptp_consts.h ice: Add support for E825-C TS PLL handling 2024-06-01 15:51:51 -07:00
ice_ptp_hw.c ice: Adjust PTP init for 2x50G E825C devices 2024-06-01 15:51:52 -07:00
ice_ptp_hw.h ice: Add support for E825-C TS PLL handling 2024-06-01 15:51:51 -07:00
ice_repr.c ice: Remove ndo_get_phys_port_name 2024-04-17 09:40:33 -07:00
ice_repr.h
ice_sbq_cmd.h ice: Introduce ETH56G PHY model for E825C products 2024-06-01 15:51:51 -07:00
ice_sched.c ice: Adjust the VSI/Aggregator layers 2024-04-22 13:05:19 -07:00
ice_sched.h ice: Support 5 layer topology 2024-04-22 13:05:19 -07:00
ice_sriov.c ice: refactor struct ice_vsi_cfg_params to be inside of struct ice_vsi 2024-05-06 09:21:00 -07:00
ice_sriov.h ice: Add automatic VF reset on Tx MDD events 2024-04-17 08:57:21 -07:00
ice_switch.c ice: Add switch recipe reusing feature 2024-04-01 08:58:09 -07:00
ice_switch.h ice: Add switch recipe reusing feature 2024-04-01 08:58:09 -07:00
ice_tc_lib.c ice: flower: validate encapsulation control flags 2024-06-12 17:56:01 -07:00
ice_tc_lib.h ice: Add support for PFCP hardware offload in switchdev 2024-04-01 10:49:29 +01:00
ice_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
ice_txrx.c
ice_txrx.h
ice_txrx_lib.c net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00
ice_txrx_lib.h
ice_type.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-06-06 12:06:56 -07:00
ice_vf_lib.c ice: refactor struct ice_vsi_cfg_params to be inside of struct ice_vsi 2024-05-06 09:21:00 -07:00
ice_vf_lib.h
ice_vf_lib_private.h
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 ice: store VF relative MSI-X index in q_vector->vf_reg_idx 2024-04-12 10:34:29 -07:00
ice_virtchnl.h
ice_virtchnl_allowlist.c
ice_virtchnl_allowlist.h
ice_virtchnl_fdir.c
ice_virtchnl_fdir.h
ice_vlan.h
ice_vlan_mode.c
ice_vlan_mode.h
ice_vsi_vlan_lib.c ice: fix accounting if a VLAN already exists 2024-05-27 17:11:43 -07:00
ice_vsi_vlan_lib.h
ice_vsi_vlan_ops.c
ice_vsi_vlan_ops.h
ice_xsk.c ice: remove af_xdp_zc_qps bitmap 2024-06-05 19:27:56 -07:00
ice_xsk.h