linux/drivers/net/ethernet
Maciej Fijalkowski 712edbbb67 ice: Limit the ice_add_rx_frag to frag addition
Refactor ice_fetch_rx_buf and ice_add_rx_frag in a way that we have
standalone functions that do either the skb construction or frag
addition to previously constructed skb.

The skb handling between rx_bufs is spread among various functions. The
ice_get_rx_buf will retrieve the skb pointer from rx_buf and if it is a
NULL pointer then we do the ice_construct_skb, otherwise we add a frag
to the current skb via ice_add_rx_frag. Then, on the ice_put_rx_buf the
skb pointer that belongs to rx_buf will be cleared. Moving further, if
the current frame is not EOP frame we assign the current skb to the
rx_buf that is pointed by updated next_to_clean indicator.

What is more during the buffer reuse let's assign each member of
ice_rx_buf individually so we avoid the unnecessary copy of skb.

Last but not least, this logic split will allow us for better code reuse
when adding a support for build_skb.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-03-25 09:55:35 -07:00
..
3com
8390 mac8390: Fix mmio access size probe 2019-03-18 16:56:57 -07:00
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
amd
apm
apple
aquantia net: aquantia: enable driver build for arm64 or compile_test 2019-03-23 22:16:53 -04:00
arc
atheros Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-02-24 12:06:19 -08:00
aurora
broadcom net: devlink: select NET_DEVLINK from drivers 2019-03-24 14:55:31 -04:00
brocade
cadence net: macb: simplify getting .driver_data 2019-03-19 14:28:55 -07:00
calxeda
cavium net: devlink: select NET_DEVLINK from drivers 2019-03-24 14:55:31 -04:00
chelsio net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
cirrus
cisco enic: fix build warning without CONFIG_CPUMASK_OFFSTACK 2019-03-07 09:41:08 -08:00
cortina
davicom
dec
dlink
emulex
ezchip
faraday drivers: net: Remove unnecessary semicolon 2019-03-01 23:13:49 -08:00
freescale ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
fujitsu net: fujitsu: fix a potential NULL pointer dereference 2019-03-12 14:48:35 -07:00
hisilicon net: Add IANA_VXLAN_UDP_PORT definition to vxlan header file 2019-03-22 12:09:31 -07:00
hp
huawei
i825xx
ibm ibmveth: Make array ibmveth_stats static 2019-03-19 14:10:09 -07:00
intel ice: Limit the ice_add_rx_frag to frag addition 2019-03-25 09:55:35 -07:00
marvell sky2: Disable MSI on Dell Inspiron 1545 and Gateway P-79 2019-03-04 11:31:25 -08:00
mediatek drivers: net: Remove unnecessary semicolon 2019-03-01 23:13:49 -08:00
mellanox net: devlink: select NET_DEVLINK from drivers 2019-03-24 14:55:31 -04:00
micrel
microchip enc28j60: Convert to use SPDX identifier 2019-03-19 14:59:32 -07:00
moxa
mscc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-03-04 13:26:15 -08:00
myricom
natsemi
neterion
netronome net: devlink: select NET_DEVLINK from drivers 2019-03-24 14:55:31 -04:00
ni
nuvoton
nvidia
nxp
oki-semi pci-v5.1-changes 2019-03-09 14:57:08 -08:00
packetengines
pasemi net: pasemi: Make pasemi_mac_init_module static 2019-03-19 14:13:37 -07:00
qlogic net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
qualcomm
rdc
realtek r8169: use netif_start_queue instead of netif_wake_qeueue in rtl8169_start_xmit 2019-03-22 10:35:25 -04:00
renesas net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
rocker net: rocker: fix a potential NULL pointer dereference 2019-03-11 16:17:31 -07:00
samsung
seeq
sfc
sgi
silan
sis net: sis900: fix indentation issues, remove some spaces 2019-03-15 11:59:00 -07:00
smsc
socionext
stmicro net: stmmac: fix jumbo frame sending with non-linear skbs 2019-03-15 11:38:57 -07:00
sun net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
synopsys
tehuti
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-03-11 08:54:01 -07:00
toshiba
tundra
via
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
lantiq_xrx200.c net: lantiq: Do not use eth_change_mtu() 2019-02-24 17:35:42 -08:00
Makefile
netx-eth.c