[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201118165107.12419-1-W_Armin@gmx.de>
Date: Wed, 18 Nov 2020 17:51:05 +0100
From: Armin Wolf <W_Armin@....de>
To: kuba@...nel.org
Cc: netdev@...r.kernel.org, davem@...emloft.net, f.fainelli@...il.com,
joe@...ches.com
Subject: [PATCH net-next v2 0/2] lib8390: Remove custom padding solution
When padding undersized frames, lib8390.c utilizes a stack scratch area
plus memset/memcpy. In doing so, it is overwriting content already
zeroed with memset, which seems not optimal even when commented as
being more efficient. Using eth_skb_pad() allows us to remove
memset/memcpy and the stack scratch area altogether.
v2 changes:
- split cleanup of variables in seperate patch
- revise commit description
Armin Wolf (2):
lib8390: Use eth_skb_pad()
lib8390: Cleanup variables
drivers/net/ethernet/8390/lib8390.c | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
--
2.20.1
Powered by blists - more mailing lists