diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-08-15 18:09:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 10:29:38 -0700 |
commit | fa1dcb6f0d338629cf1e3939227135ce0ea17b50 (patch) | |
tree | 6bd85b93ddef522490d88bbc8fe5684e72f850c0 /drivers/net | |
parent | fbc350126994de9682e0400b969ab84437768894 (diff) | |
download | linux-3.10-fa1dcb6f0d338629cf1e3939227135ce0ea17b50.tar.gz linux-3.10-fa1dcb6f0d338629cf1e3939227135ce0ea17b50.tar.bz2 linux-3.10-fa1dcb6f0d338629cf1e3939227135ce0ea17b50.zip |
sfc: Fix reporting of IPv4 full filters through ethtool
[ Upstream commit ac70b2e9a13423b5efa0178e081936ce6979aea5 ]
ETHTOOL_GRXCLSRULE returns filters for a TCP/IPv4 or UDP/IPv4 4-tuple
with source and destination swapped.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/sfc/ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c index b7b37d46a60..ff64def0ffd 100644 --- a/drivers/net/ethernet/sfc/ethtool.c +++ b/drivers/net/ethernet/sfc/ethtool.c @@ -863,8 +863,8 @@ static int efx_ethtool_get_class_rule(struct efx_nic *efx, &ip_entry->ip4dst, &ip_entry->pdst); if (rc != 0) { rc = efx_filter_get_ipv4_full( - &spec, &proto, &ip_entry->ip4src, &ip_entry->psrc, - &ip_entry->ip4dst, &ip_entry->pdst); + &spec, &proto, &ip_entry->ip4dst, &ip_entry->pdst, + &ip_entry->ip4src, &ip_entry->psrc); EFX_WARN_ON_PARANOID(rc); ip_mask->ip4src = ~0; ip_mask->psrc = ~0; |