netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH net-next v2 2/2] lib8390: Cleanup variables
@ 2020-11-26 13:05 Armin Wolf
  0 siblings, 0 replies; 3+ messages in thread
From: Armin Wolf @ 2020-11-26 13:05 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, davem, f.fainelli, joe

<20201120120235.1925e713@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>

I would indeed like to become the maintainer of this driver,
as I do in fact still have working hardware using this code
(a Realtek 8029AS).
Unfortunately, i am still considering myself too inexperienced in
kernel development to become a maintainer.

So maybe i should at first gather more experience by studying
other nic drivers.

Sorry for bothering.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH net-next v2 0/2] lib8390: Remove custom padding solution
@ 2020-11-18 16:51 Armin Wolf
  2020-11-18 16:51 ` [PATCH net-next v2 2/2] lib8390: Cleanup variables Armin Wolf
  0 siblings, 1 reply; 3+ messages in thread
From: Armin Wolf @ 2020-11-18 16:51 UTC (permalink / raw)
  To: kuba; +Cc: netdev, davem, f.fainelli, joe

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-26 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-26 13:05 [PATCH net-next v2 2/2] lib8390: Cleanup variables Armin Wolf
  -- strict thread matches above, loose matches on Subject: below --
2020-11-18 16:51 [PATCH net-next v2 0/2] lib8390: Remove custom padding solution Armin Wolf
2020-11-18 16:51 ` [PATCH net-next v2 2/2] lib8390: Cleanup variables Armin Wolf
2020-11-20 20:02   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).