mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ethtool: Remove unimplemented flow specification types
struct ethtool_rawip4_spec and struct ethtool_ether_spec are neither commented nor used by any driver, so remove them. Adjust padding in the user-visible unions that included these structures. Fix references to struct ethtool_rawip4_spec in ethtool_get_rx_ntuple(), which should use struct ethtool_usrip4_spec. struct ethtool_usrip4_spec cannot hold IPv6 host addresses and there is no separate structure that can, so remove ETH_RX_NFC_IP6 and the reference to it in niu. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e035587305
commit
e0de7c93b9
3 changed files with 11 additions and 37 deletions
|
@ -673,19 +673,19 @@ static int ethtool_get_rx_ntuple(struct net_device *dev, void __user *useraddr)
|
|||
break;
|
||||
case IP_USER_FLOW:
|
||||
sprintf(p, "\tSrc IP addr: 0x%x\n",
|
||||
fsc->fs.h_u.raw_ip4_spec.ip4src);
|
||||
fsc->fs.h_u.usr_ip4_spec.ip4src);
|
||||
p += ETH_GSTRING_LEN;
|
||||
num_strings++;
|
||||
sprintf(p, "\tSrc IP mask: 0x%x\n",
|
||||
fsc->fs.m_u.raw_ip4_spec.ip4src);
|
||||
fsc->fs.m_u.usr_ip4_spec.ip4src);
|
||||
p += ETH_GSTRING_LEN;
|
||||
num_strings++;
|
||||
sprintf(p, "\tDest IP addr: 0x%x\n",
|
||||
fsc->fs.h_u.raw_ip4_spec.ip4dst);
|
||||
fsc->fs.h_u.usr_ip4_spec.ip4dst);
|
||||
p += ETH_GSTRING_LEN;
|
||||
num_strings++;
|
||||
sprintf(p, "\tDest IP mask: 0x%x\n",
|
||||
fsc->fs.m_u.raw_ip4_spec.ip4dst);
|
||||
fsc->fs.m_u.usr_ip4_spec.ip4dst);
|
||||
p += ETH_GSTRING_LEN;
|
||||
num_strings++;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue