net/enic: fix crash on MTU update with non-setup queues
authorJohn Daley <johndale@cisco.com>
Wed, 4 Apr 2018 23:54:53 +0000 (16:54 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:41:44 +0000 (00:41 +0200)
commit33a2d6594945eb3278bfa441f79ae9a38ea538a0
treee3f7ca7ae93ce35c4864642edce688b4e28add9c
parent9bd04182bb01da907abfcd630b5e5a4160ff728a
net/enic: fix crash on MTU update with non-setup queues

The enic code called from rte_eth_dev_set_mtu() was assuming that the
Rx queues are already set up via a call to rte_eth_tx_queue_setup().
OVS calls rte_eth_dev_set_mtu() before rte_eth_rx_queue_setup() and
a null pointer was dereferenced.

Fixes: c3e09182bcd6 ("net/enic: support scatter Rx in MTU update")
Cc: stable@dpdk.org
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_main.c