]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
gianfar: Clean up implementation of RX network flow classification
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 8 Apr 2011 13:45:11 +0000 (13:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2011 20:28:43 +0000 (13:28 -0700)
commitbde3528f17aebb9c74d6b0ef81860868c91af049
treed93e8d029d95d45ac983848b480c8707b3f62023
parent1b3291241a658fb4d4bbdb41483e1f53c26445ec
gianfar: Clean up implementation of RX network flow classification

This code was cribbed from niu, so gfar_set_hash_opts() begins by
converting the ethtool flow class code into a class code for Sun
Neptune hardware, then does the same thing again for the hardware it's
really dealing with.  It may also return -1 (-EPERM) for some
unhandled ethtool flow class codes.

Remove the useless code and definitions, and fix the error code.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.h
drivers/net/gianfar_ethtool.c