linux/drivers/net
Colin Foster 2f187bfa6f net: ethernet: ocelot: remove the need for num_stats initializer
There is a desire to share the oclot_stats_layout struct outside of the
current vsc7514 driver. In order to do so, the length of the array needs to
be known at compile time, and defined in the struct ocelot and struct
felix_info.

Since the array is defined in a .c file and would be declared in the header
file via:
extern struct ocelot_stat_layout[];
the size of the array will not be known at compile time to outside modules.

To fix this, remove the need for defining the number of stats at compile
time and allow this number to be determined at initialization.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-04-30 13:38:49 +01:00
..
appletalk
arcnet
bonding ipv6: Use ipv6_only_sock() helper in condition. 2022-04-22 12:47:50 +01:00
caif
can can: ctucanfd: CTU CAN FD open-source IP core - platform/SoC support. 2022-04-19 17:12:14 +02:00
dsa net: ethernet: ocelot: remove the need for num_stats initializer 2022-04-30 13:38:49 +01:00
ethernet net: ethernet: ocelot: remove the need for num_stats initializer 2022-04-30 13:38:49 +01:00
fddi
fjes
hamradio net: hamradio: remove support for DMA SCC devices 2022-04-27 12:22:56 +01:00
hippi drivers: net: hippi: Fix deadlock in rr_close() 2022-04-21 10:30:45 +02:00
hyperv
ieee802154
ipa net: ipa: compute proper aggregation limit 2022-04-25 11:27:56 +01:00
ipvlan
mctp
mdio net: mdio: add reset control for Aspeed MDIO 2022-04-28 09:39:31 +02:00
netdevsim
pcs
phy net: phy: micrel: add coma mode GPIO 2022-04-29 16:37:53 -07:00
plip
ppp
slip
team
usb usb: lan78xx: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
vmxnet3
vxlan
wan net: wan: remove support for Z85230-based devices 2022-04-27 12:22:56 +01:00
wireguard wireguard: device: check for metadata_dst with skb_valid_dst() 2022-04-22 15:59:05 -07:00
wireless ar5523: Use kzalloc instead of kmalloc/memset 2022-04-20 11:04:09 +01:00
wwan wwan_hwsim: Avoid flush_scheduled_work() usage 2022-04-25 12:10:24 -07:00
xen-netback eth: remove copies of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00
amt.c
bareudp.c
dummy.c
eql.c net: eql: Use kzalloc instead of kmalloc/memset 2022-04-21 14:40:21 +02:00
geneve.c geneve: avoid indirect calls in GRO path, when possible 2022-04-15 10:52:29 +01:00
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c virtio_net: fix wrong buf address calculation when using xdp 2022-04-26 13:24:44 +02:00
vrf.c
vsockmon.c
xen-netfront.c