linux/drivers/net/ethernet/microchip/vcap
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
Makefile net: microchip: vcap: Add tc flower keys for lan966x 2023-02-10 08:03:09 +00:00
vcap_ag_api.h net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_api.c net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_api.h net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
vcap_api_client.h net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_api_debugfs.c net: microchip: sparx5: clean up error checking in vcap_show_admin() 2023-10-03 07:13:32 -07:00
vcap_api_debugfs.h
vcap_api_debugfs_kunit.c net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
vcap_api_kunit.c net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
vcap_api_private.h net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_model_kunit.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
vcap_model_kunit.h net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
vcap_tc.c net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00
vcap_tc.h net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00