All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH 0/1] net/ncsi: Fix netlink major/minor version numbers
@ 2023-02-02 17:53 Peter Delevoryas
  2023-02-02 17:53 ` [net-next PATCH 1/1] " Peter Delevoryas
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Delevoryas @ 2023-02-02 17:53 UTC (permalink / raw)
  Cc: sam, davem, edumazet, kuba, pabeni, joel, gwshan, netdev, linux-kernel

Background:

This fixes some nonsensical behavior with the NCSI version numbers that has
existed since the NCSI driver was introduced. Details in the commit message.

Functionally, this is only visible through the netlink interface, so I've
titled this commit as "fixing netlink".

But actually, the real reason I care about this is to provide a proper mechanism
for using the network card's NCSI version in the driver state machine.

With the major and minor versions parsed correctly here, the state machine can
decide to send NCSI 1.1 or 1.2 commands when the card supports it.

I submitted this patch previously[1] with two other changes, but that series
was ignored (wrong time to submit, invalid subject prefix, and the last patch
is controversial until hardware propagates).

I decided to just resubmit this first patch, since I think it's valuable on its
own. I'll follow up with the other ones later.

[1] https://lore.kernel.org/lkml/20221221052246.519674-1-peter@pjd.dev/

Implementation notes:

I found that "include/linux/bcd.h" doesn't actually do what we would want, so I
added a local static function. Perhaps I actually should have added that to
"include/linux/bcd.h" so other people can use it in the future? Let me know
what you guys think.

Thanks,
Peter

Peter Delevoryas (1):
  net/ncsi: Fix netlink major/minor version numbers

 net/ncsi/internal.h     |  7 +++++--
 net/ncsi/ncsi-netlink.c |  4 ++--
 net/ncsi/ncsi-pkt.h     |  7 +++++--
 net/ncsi/ncsi-rsp.c     | 26 ++++++++++++++++++++++++--
 4 files changed, 36 insertions(+), 8 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2023-02-07 15:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 17:53 [net-next PATCH 0/1] net/ncsi: Fix netlink major/minor version numbers Peter Delevoryas
2023-02-02 17:53 ` [net-next PATCH 1/1] " Peter Delevoryas
2023-02-04  9:19   ` Simon Horman
2023-02-07  8:21     ` Peter Delevoryas
2023-02-07  8:44       ` Simon Horman
2023-02-07 15:39         ` Peter Delevoryas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.