linux_dsm_epyc7002/drivers/net
Maxime Chevallier 0c6d9b4414 net: mvpp2: Don't use dynamic allocs for local variables
Some helper functions that search for given entries in the TCAM filter
on PPv2 controller make use of dynamically alloced temporary variables,
allocated with GFP_KERNEL. These functions can be called in atomic
context, and dynamic alloc is not really needed in these cases anyways.

This commit gets rid of dynamic allocs and use stack allocation in the
following functions, and where they're used :
 - mvpp2_prs_flow_find
 - mvpp2_prs_vlan_find
 - mvpp2_prs_double_vlan_find
 - mvpp2_prs_mac_da_range_find

For all these functions, instead of returning an temporary object
representing the TCAM entry, we simply return the TCAM id that matches
the requested entry.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-27 10:47:23 -04:00
..
appletalk
arcnet
bonding drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
caif drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
can drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
cris
dsa net: dsa: mv88e6xxx: Call the common IRQ free code 2018-03-25 20:43:41 -04:00
ethernet net: mvpp2: Don't use dynamic allocs for local variables 2018-03-27 10:47:23 -04:00
fddi
fjes
hamradio drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
hippi
hyperv drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
ieee802154 drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
ipvlan
netdevsim
phy drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
plip
ppp drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
slip
team Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
usb drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
vmxnet3
wan
wimax
wireless wireless-drivers-next patches for 4.17 2018-03-25 21:27:38 -04:00
xen-netback drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c macsec: missing dev_put() on error in macsec_newlink() 2018-03-22 14:30:36 -04:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
veth.c
virtio_net.c virtio-net: Fix operstate for virtio when no VIRTIO_NET_F_STATUS 2018-03-23 12:16:46 -04:00
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00