linux/drivers/net/ethernet/microchip
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
..
lan966x net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
sparx5 net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
vcap net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
Kconfig net: lan743x: also select PHYLIB 2023-10-05 09:10:18 -07:00
Makefile
enc28j60.c net: enc28j60: Use threaded interrupt instead of workqueue 2023-05-11 18:00:37 -07:00
enc28j60_hw.h
encx24j600-regmap.c net: encx24j600: Correct spelling in comments 2024-04-25 19:13:26 -07:00
encx24j600.c net: encx24j600: Correct spelling in comments 2024-04-25 19:13:26 -07:00
encx24j600_hw.h net: encx24j600: Correct spelling in comments 2024-04-25 19:13:26 -07:00
lan743x_ethtool.c net: lan743x: Fixup EEE 2024-04-08 14:04:16 +01:00
lan743x_ethtool.h
lan743x_main.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
lan743x_main.h net: lan743x: Add set RFE read fifo threshold for PCI1x1x chips 2024-03-28 11:36:10 +01:00
lan743x_ptp.c net: microchip: lan743x: Reduce PTP timeout on HW failure 2024-05-06 11:41:32 +02:00
lan743x_ptp.h net: microchip: lan743x: Reduce PTP timeout on HW failure 2024-05-06 11:41:32 +02:00