gianfar: rx parser
authorSebastian Pöhn <sebastian.belden@googlemail.com>
Fri, 15 Jul 2011 23:00:20 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2011 23:00:20 +0000 (16:00 -0700)
commitf3dc1586375c3fa061c4867e8b076d09a53beb03
tree70202f8648dfdaa47c3a877425a60057d06ee7f1
parent0d9b6e738a22244d38def847a24e5ee6fcedd898
gianfar: rx parser

Only let the rx parser be enabled if it is necessary (if VLAN extraction,
IP or TCP checksumming or the rx queue filer are enabled). Otherwise
disable it.

The new routine gfar_check_rx_parser_mode should be run after every
change on this features and will enable/disable the parser as necessary.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Sebastian Poehn <sebastian.poehn@belden.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c
drivers/net/gianfar.h