1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microchip/sparx5
Asbjørn Sloth Tønnesen 8ef631e9c9 net: sparx5: flower: check for unsupported control flags
Use flow_rule_is_supp_control_flags() to reject filters with
unsupported control flags.

In case any unsupported control flags are masked,
flow_rule_is_supp_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: Daniel Machon <daniel.machon@microchip.com>
Tested-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/20240424121632.459022-5-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-25 19:35:08 -07:00
..
Kconfig net: microchip: sparx5: add support for offloading pcp table 2022-11-03 15:16:50 +01:00
Makefile net: sparx5: add port mirroring implementation 2024-04-24 13:08:06 +01:00
sparx5_calendar.c net: sparx5: add calendar bandwidth allocation support 2021-06-24 11:28:13 -07:00
sparx5_dcb.c net: microchip: sparx5: fix deletion of existing DSCP mappings 2023-03-08 13:07:59 +00:00
sparx5_ethtool.c net: Convert some ethtool_sprintf() to ethtool_puts() 2023-12-08 10:56:25 +00:00
sparx5_fdma.c net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
sparx5_mactable.c net: sparx5: Fix use after free inside sparx5_del_mact_entry 2024-03-04 20:38:22 -08:00
sparx5_main.c net: sparx5: add bookkeeping code for matchall rules 2024-04-24 13:08:06 +01:00
sparx5_main.h net: sparx5: add support for matchall mirror stats 2024-04-24 13:08:07 +01:00
sparx5_main_regs.h net: sparx5: add new register definitions 2024-04-24 13:08:06 +01:00
sparx5_mirror.c net: sparx5: add support for matchall mirror stats 2024-04-24 13:08:07 +01:00
sparx5_netdev.c net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers 2023-08-02 19:11:06 -07:00
sparx5_packet.c net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
sparx5_pgid.c net: sparx5: Refactor mdb handling according to feedback 2022-03-25 15:45:14 -07:00
sparx5_phylink.c net: sparx5: update PCS driver to use neg_mode 2023-06-22 19:41:02 -07:00
sparx5_police.c net: microchip: sparx5: add support for service policers 2023-02-06 08:26:25 +00:00
sparx5_pool.c net: microchip: sparx5: add resource pools 2023-02-06 08:26:25 +00:00
sparx5_port.c net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
sparx5_port.h net: microchip: sparx5: add support for DSCP rewrite 2023-01-20 09:33:22 +00:00
sparx5_psfp.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_ptp.c net: sparx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2023-08-02 19:11:06 -07:00
sparx5_qos.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_qos.h net: microchip: sparx5: add support for offloading ets qdisc 2022-09-23 09:53:10 +01:00
sparx5_sdlb.c net: microchip: sparx5: add support for Service Dual Leacky Buckets 2023-02-06 08:26:25 +00:00
sparx5_switchdev.c net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
sparx5_tc.c net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
sparx5_tc.h net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_tc_flower.c net: sparx5: flower: check for unsupported control flags 2024-04-25 19:35:08 -07:00
sparx5_tc_matchall.c net: sparx5: add support for matchall mirror stats 2024-04-24 13:08:07 +01:00
sparx5_vcap_ag_api.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
sparx5_vcap_ag_api.h net: microchip: sparx5: Adding IS2 VCAP model to VCAP API 2022-10-24 10:37:42 +01:00
sparx5_vcap_debugfs.c net: microchip: sparx5: Correct the spelling of the keysets in debugfs 2023-03-08 13:19:43 +00:00
sparx5_vcap_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
sparx5_vcap_impl.c net: microchip: sparx5: Add port keyset changing functionality 2023-03-08 13:19:43 +00:00
sparx5_vcap_impl.h net: microchip: sparx5: Add port keyset changing functionality 2023-03-08 13:19:43 +00:00
sparx5_vlan.c net: microchip: sparx5: Egress VLAN TPID configuration follows IFH 2023-02-16 08:59:48 +01:00