[PATCH net 8/9] net: qed: reset ILT block sizes before recomputing to fix crashes

2020-06-22 Thread Alexander Lobakin
Sizes of all ILT blocks must be reset before ILT recomputing when disabling clients, or memory allocation may exceed ILT shadow array and provoke system crashes. Fixes: 1408cc1fa48c ("qed: Introduce VFs") Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh Signed-off-by: Michal Kaldero

Re: [PATCH net 8/8] net: stmmac: xgmac: Fix RSS not writing all Keys to HW

2019-09-27 Thread Nick Desaulniers
On Fri, Sep 27, 2019 at 12:49 AM Jose Abreu wrote: > > The sizeof(cfg->key) is != ARRAY_SIZE(cfg->key). Fix it. I think the warning was from -Wsizeof-array-div. > > Reported-by: kbuild test robot > Reported-by: Nick Desaulniers I may have reported the kbuild link, but scanning my email, there

[PATCH net 8/8] net: stmmac: xgmac: Fix RSS not writing all Keys to HW

2019-09-27 Thread Jose Abreu
The sizeof(cfg->key) is != ARRAY_SIZE(cfg->key). Fix it. Reported-by: kbuild test robot Reported-by: Nick Desaulniers Fixes: 76067459c686 ("net: stmmac: Implement RSS and enable it in XGMAC core") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "

[PATCH net 8/9] rxrpc: Use shadow refcount for packets in the RxTx ring

2019-08-22 Thread David Howells
Use the previously added shadow refcount for packets that are in the Rx/Tx ring so that the ring itself only ever holds a single ref on the skbuff. This allows skb_cow_data() to be used by the recvmsg code to make the data modifyable for in-place decryption without triggering the assertion in pskb

[PATCH net 8/9] net: hns3: Fix for setting rss_size incorrectly

2017-09-20 Thread Yunsheng Lin
rss_size is 1, 2, 4, 8, 16, 32, 64, 128, but acutal tc queue size can be any u16 less than 128. If tc queue size is 5, we set the rss_size to 8, indirection table will be used to limit the size of actual queue size. It may cause dropping of receiving packet in hardware if rss_size is not set correc

[PATCH net 8/8] net: bcmgenet: decouple flow control from bcmgenet_tx_reclaim

2017-03-09 Thread Doug Berger
From: Doug Berger The bcmgenet_tx_reclaim() function is used to reclaim transmit resources in different places within the driver. Most of them should not affect the state of the transmit flow control. This commit relocates the logic for waking tx queues based on freed resources to the napi poll

[PATCH net 8/9] virtio-net: remove big packet XDP codes

2016-12-23 Thread Jason Wang
Now we in fact don't allow XDP for big packets, remove its codes. Cc: John Fastabend Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 44 +++- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/vi

[PATCH] net #8

2001-05-29 Thread Andrzej Krzysztofowicz
The following patch fixes some bogus comments in /drivers/net/*.c Andrzej *** PATCH 8 * diff -uNr linux-2.4.5-ac4/drivers/net/3c501.c linux/drivers/net/3c501.c --- linux-2.4.5-ac4/drivers/net/3c501.c Wed May 30 01:09:52 2001 +++ linux/driv