net: bnx2x: convert to hw_features
Since ndo_fix_features callback is postponing features change when bp->recovery_state != BNX2X_RECOVERY_DONE, netdev_update_features() has to be called again when this condition changes. Previously, ethtool_ops->set_flags callback returned -EBUSY in that case (it's not possible in the new model). Signed-off-by:Michał Mirosław <mirq-linux@rere.qmqm.pl> v5: - don't delay set_features, as it's rtnl_locked - same as recovery process v4: - complete bp->rx_csum -> NETIF_F_RXCSUM conversion - add check for failed ndo_set_features in ndo_open callback v3: - include NETIF_F_LRO in hw_features - don't call netdev_update_features() if bnx2x_nic_load() failed v2: - comment in ndo_fix_features callback Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/bnx2x/bnx2x.h 0 additions, 1 deletiondrivers/net/bnx2x/bnx2x.h
- drivers/net/bnx2x/bnx2x_cmn.c 43 additions, 6 deletionsdrivers/net/bnx2x/bnx2x_cmn.c
- drivers/net/bnx2x/bnx2x_cmn.h 3 additions, 0 deletionsdrivers/net/bnx2x/bnx2x_cmn.h
- drivers/net/bnx2x/bnx2x_ethtool.c 0 additions, 95 deletionsdrivers/net/bnx2x/bnx2x_ethtool.c
- drivers/net/bnx2x/bnx2x_main.c 11 additions, 16 deletionsdrivers/net/bnx2x/bnx2x_main.c
Loading
Please register or sign in to comment