diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-02-06 01:14:54 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-02-06 01:14:54 -0500 |
commit | 9c3c3f04ca125f419a78e6862d4586a0fe649694 (patch) | |
tree | bd930df890bfd617a26fb6b610d842ef8fbc2c3d | |
parent | e2b0502a2fc578d2d3ffa41d0ac4ca6080d66386 (diff) | |
download | ethtool-9c3c3f04ca125f419a78e6862d4586a0fe649694.tar.gz |
ethtool-copy.h: Update to latest net-next version
Creates a named constant for the hardcoded firmware version field size.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | ethtool-copy.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethtool-copy.h b/ethtool-copy.h index d366c3a..09dd548 100644 --- a/ethtool-copy.h +++ b/ethtool-copy.h @@ -49,13 +49,14 @@ static inline __u32 ethtool_cmd_speed(struct ethtool_cmd *ep) return (ep->speed_hi << 16) | ep->speed; } +#define ETHTOOL_FWVERS_LEN 32 #define ETHTOOL_BUSINFO_LEN 32 /* these strings are set to whatever the driver author decides... */ struct ethtool_drvinfo { __u32 cmd; char driver[32]; /* driver short name, "tulip", "eepro100" */ char version[32]; /* driver version string */ - char fw_version[32]; /* firmware version string, if applicable */ + char fw_version[ETHTOOL_FWVERS_LEN]; /* firmware version string */ char bus_info[ETHTOOL_BUSINFO_LEN]; /* Bus info for this IF. */ /* For PCI devices, use pci_name(pci_dev). */ char reserved1[32]; |