]> Pileus Git - ~andy/linux/blobdiff - drivers/net/igb/igb.h
igb: remove unused rx_hdr_split statistic
[~andy/linux] / drivers / net / igb / igb.h
index 530d7aa4cb86e95098c34a5e5f03700a852c4c59..88fdfe4961d8aedd2d0810d8baa41f00798700fd 100644 (file)
@@ -238,7 +238,6 @@ struct igb_adapter {
 
        u64 hw_csum_err;
        u64 hw_csum_good;
-       u64 rx_hdr_split;
        u32 alloc_rx_buff_failed;
        bool rx_csum;
        u32 gorc;
@@ -313,24 +312,24 @@ extern void igb_set_ethtool_ops(struct net_device *);
 
 static inline s32 igb_reset_phy(struct e1000_hw *hw)
 {
-       if (hw->phy.ops.reset_phy)
-               return hw->phy.ops.reset_phy(hw);
+       if (hw->phy.ops.reset)
+               return hw->phy.ops.reset(hw);
 
        return 0;
 }
 
 static inline s32 igb_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data)
 {
-       if (hw->phy.ops.read_phy_reg)
-               return hw->phy.ops.read_phy_reg(hw, offset, data);
+       if (hw->phy.ops.read_reg)
+               return hw->phy.ops.read_reg(hw, offset, data);
 
        return 0;
 }
 
 static inline s32 igb_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data)
 {
-       if (hw->phy.ops.write_phy_reg)
-               return hw->phy.ops.write_phy_reg(hw, offset, data);
+       if (hw->phy.ops.write_reg)
+               return hw->phy.ops.write_reg(hw, offset, data);
 
        return 0;
 }