ethdev: allow to force Rx scatter mode
authorDavid Marchand <david.marchand@6wind.com>
Tue, 17 Jun 2014 18:09:29 +0000 (20:09 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Jun 2014 22:55:05 +0000 (00:55 +0200)
commit42a6a4a6906c78e89813aa022782957b7190e9ba
tree666b2be9692278bb81b39b2de68032833afde5b4
parent26930874b63e38dcc34fdf007a4cb919877465e6
ethdev: allow to force Rx scatter mode

We might want to be sure the scatter packets reception handler is selected in a
pmd. This makes it possible to then change mtu later, without the need of
restarting a port.
It is then the pmd duty to tell it enabled the scatter reception handler by
setting dev->data->scattered_rx to 1.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/rte_ethdev.h
lib/librte_pmd_e1000/em_rxtx.c
lib/librte_pmd_e1000/igb_rxtx.c
lib/librte_pmd_ixgbe/ixgbe_rxtx.c