eth: fbnic: support ring channel get and set while down
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 02:52:40 +0000 (18:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:35:56 +0000 (10:35 -0800)
commit3a481cc72673b2fbb18271acf2d9b43f6a920ec4
treeb6d081e882e4529cc84cee3bb014b88cfb5920dc
parent557d02238e05eb66b9aba9a1f90f3a2131c6c887
eth: fbnic: support ring channel get and set while down

Trivial implementation of ethtool channel get and set. Set is only
supported when device is closed, next patch will add code for
live reconfig.

Asymmetric configurations are supported (combined + extra Tx or Rx),
so are configurations with independent IRQs for Rx and Tx.
Having all 3 NAPI types (combined, Tx, Rx) is not supported.

We used to only call fbnic_reset_indir_tbl() during init.
Now that we call it after device had been register must
be careful not to override user config.

Link: https://patch.msgid.link/20241220025241.1522781-10-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
drivers/net/ethernet/meta/fbnic/fbnic_rpc.c