diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-04-08 09:45:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-11 16:28:43 -0400 |
commit | bde3528f17aebb9c74d6b0ef81860868c91af049 (patch) | |
tree | d93e8d029d95d45ac983848b480c8707b3f62023 /drivers/net/gianfar.h | |
parent | 1b3291241a658fb4d4bbdb41483e1f53c26445ec (diff) |
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>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index ec5d595ce2e2..57ee3b009d75 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -382,23 +382,6 @@ extern const char gfar_driver_version[]; | |||
382 | #define BD_LFLAG(flags) ((flags) << 16) | 382 | #define BD_LFLAG(flags) ((flags) << 16) |
383 | #define BD_LENGTH_MASK 0x0000ffff | 383 | #define BD_LENGTH_MASK 0x0000ffff |
384 | 384 | ||
385 | #define CLASS_CODE_UNRECOG 0x00 | ||
386 | #define CLASS_CODE_DUMMY1 0x01 | ||
387 | #define CLASS_CODE_ETHERTYPE1 0x02 | ||
388 | #define CLASS_CODE_ETHERTYPE2 0x03 | ||
389 | #define CLASS_CODE_USER_PROG1 0x04 | ||
390 | #define CLASS_CODE_USER_PROG2 0x05 | ||
391 | #define CLASS_CODE_USER_PROG3 0x06 | ||
392 | #define CLASS_CODE_USER_PROG4 0x07 | ||
393 | #define CLASS_CODE_TCP_IPV4 0x08 | ||
394 | #define CLASS_CODE_UDP_IPV4 0x09 | ||
395 | #define CLASS_CODE_AH_ESP_IPV4 0x0a | ||
396 | #define CLASS_CODE_SCTP_IPV4 0x0b | ||
397 | #define CLASS_CODE_TCP_IPV6 0x0c | ||
398 | #define CLASS_CODE_UDP_IPV6 0x0d | ||
399 | #define CLASS_CODE_AH_ESP_IPV6 0x0e | ||
400 | #define CLASS_CODE_SCTP_IPV6 0x0f | ||
401 | |||
402 | #define FPR_FILER_MASK 0xFFFFFFFF | 385 | #define FPR_FILER_MASK 0xFFFFFFFF |
403 | #define MAX_FILER_IDX 0xFF | 386 | #define MAX_FILER_IDX 0xFF |
404 | 387 | ||