linux/drivers/net/ethernet/microchip/lan966x
Christophe JAILLET 8c379e3ce4 net: microchip: Constify struct vcap_operations
"struct vcap_operations" are not modified in these drivers.

Constifying this structure moves some data to a read-only section, so
increase overall security.

In order to do it, "struct vcap_control" also needs to be adjusted to this
new const qualifier.

As an example, on a x86_64, with allmodconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  15176	   1094	     16	  16286	   3f9e	drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  15268	    998	     16	  16282	   3f9a	drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/d8e76094d2e98ebb5bfc8205799b3a9db0b46220.1718524644.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-06-18 15:26:39 +02:00
..
Kconfig net: lan966x: Add support for offloading pcp table 2023-05-18 15:32:09 +02:00
Makefile net: lan966x: Add support for offloading pcp table 2023-05-18 15:32:09 +02:00
lan966x_cbs.c net: lan966x: Add offload support for cbs 2022-09-28 09:36:28 +01:00
lan966x_dcb.c net: lan966x: Add support for DSCP rewrite 2023-05-18 15:32:10 +02:00
lan966x_ethtool.c eth: lan966x: don't clear unsupported stats 2024-06-14 18:31:19 -07:00
lan966x_ets.c net: lan966x: Add offload support for ets 2022-09-28 09:36:28 +01:00
lan966x_fdb.c net: lan966x: Extend FDB to support also lag 2022-08-22 14:00:54 +01:00
lan966x_fdma.c page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00
lan966x_goto.c net: microchip: vcap api: Use src and dst chain id to chain VCAP lookups 2023-01-16 13:45:17 +00:00
lan966x_ifh.h net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_lag.c lan966x: Fix crash when adding interface under a lag 2024-02-09 13:47:47 -08:00
lan966x_mac.c net: lan966x: Extend MAC to support also lag interfaces. 2022-08-22 14:00:54 +01:00
lan966x_main.c net: lan966x: Remove ptp traps in case the ptp is not enabled. 2024-05-22 10:09:04 +02:00
lan966x_main.h net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_mdb.c net: lan966x: Update mdb when enabling/disabling mcast_snooping 2022-02-05 15:00:43 +00:00
lan966x_mirror.c net: lan966x: Add port mirroring support using tc-matchall 2022-10-03 12:46:46 +01:00
lan966x_mqprio.c net: lan966x: Fix spelling mistake "tarffic" -> "traffic" 2022-09-30 12:34:01 +01:00
lan966x_phylink.c net: lan966x: update PCS driver to use neg_mode 2023-06-22 19:41:01 -07:00
lan966x_police.c net: lan966x: Change lan966x_police_del return type 2023-03-15 00:28:56 -07:00
lan966x_port.c net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_ptp.c net: lan966x: Fix return value check for vcap_get_rule() 2023-08-19 19:29:23 +01:00
lan966x_regs.h net: lan966x: Add registers to configure PCP, DEI, DSCP 2023-05-18 15:32:09 +02:00
lan966x_switchdev.c net: lan966x: Extend FDB to support also lag 2022-08-22 14:00:54 +01:00
lan966x_taprio.c net: lan966x: Add offload support for taprio 2022-09-23 12:31:27 +01:00
lan966x_tbf.c net: lan966x: Add offload support for tbf 2022-09-28 09:36:28 +01:00
lan966x_tc.c net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum 2023-05-31 10:00:30 +01:00
lan966x_tc_flower.c net: lan966x: flower: check for unsupported control flags 2024-04-25 19:36:37 -07:00
lan966x_tc_matchall.c net: microchip: vcap api: Use src and dst chain id to chain VCAP lookups 2023-01-16 13:45:17 +00:00
lan966x_vcap_ag_api.c net: lan966x: Add ES0 VCAP model 2023-05-10 09:51:10 +01:00
lan966x_vcap_ag_api.h net: lan966x: Add is2 vcap model to vcap API. 2022-11-29 13:08:23 +01:00
lan966x_vcap_debugfs.c net: lan966x: debugfs: Fix showing the port keyset 2024-01-31 13:35:19 +00:00
lan966x_vcap_impl.c net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
lan966x_vlan.c net: lan966x: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan966x_xdp.c lan966x: Don't use xdp_frame when action is XDP_TX 2023-04-24 18:58:04 -07:00