Thread (181 messages) 181 messages, 6 authors, 2022-01-27

Re: [RFCv2 net-next 019/167] net: sfc: convert the prototype of xxx_supported_features

From: Edward Cree <ecree.xilinx@gmail.com>
Date: 2021-09-30 00:28:29

On 29/09/2021 16:51, Jian Shen wrote:
quoted hunk ↗ jump to hunk
For the origin type for netdev_features_t would be changed to
be unsigned long * from u64, so changes the prototype of
xxx_supported_features for adaption.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
---
 drivers/net/ethernet/sfc/falcon/net_driver.h | 5 +++--
 drivers/net/ethernet/sfc/mcdi_filters.c      | 5 ++++-
 drivers/net/ethernet/sfc/net_driver.h        | 5 +++--
 3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/sfc/falcon/net_driver.h b/drivers/net/ethernet/sfc/falcon/net_driver.h
index a381cf9ec4f3..6fabfe7f02f5 100644
--- a/drivers/net/ethernet/sfc/falcon/net_driver.h
+++ b/drivers/net/ethernet/sfc/falcon/net_driver.h
@@ -1298,11 +1298,12 @@ static inline struct ef4_rx_buffer *ef4_rx_buffer(struct ef4_rx_queue *rx_queue,
  * If a feature is fixed, it does not present in hw_features, but
  * always in features.
  */
-static inline netdev_features_t ef4_supported_features(const struct ef4_nic *efx)
+static inline void ef4_supported_features(const struct ef4_nic *efx,
+					  netdev_features_t *supported)
Looks like this function isn't used anywhere in the Falcon
 code anyway, so you could just delete it instead.

-ed
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help