ixgbe: add mac type to the version in ethtool_regs
[cascardo/linux.git] / drivers / net / ethernet / intel / ixgbe / ixgbe_ethtool.c
index 509d3ae..d375472 100644 (file)
@@ -440,7 +440,8 @@ static void ixgbe_get_regs(struct net_device *netdev,
 
        memset(p, 0, IXGBE_REGS_LEN * sizeof(u32));
 
-       regs->version = (1 << 24) | hw->revision_id << 16 | hw->device_id;
+       regs->version = hw->mac.type << 24 | hw->revision_id << 16 |
+                       hw->device_id;
 
        /* General Registers */
        regs_buff[0] = IXGBE_READ_REG(hw, IXGBE_CTRL);