vmxnet3: initialize receive mode for broadcast
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 25 Jul 2014 17:50:37 +0000 (10:50 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Aug 2014 14:47:14 +0000 (16:47 +0200)
The driver must listen to broadcast packets, like other devices.
Otherwise protocols like ARP won't work!

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c

index e6caa0a..c6e69f2 100644 (file)
@@ -522,7 +522,7 @@ vmxnet3_dev_start(struct rte_eth_dev *dev)
        }
 
        /* Setting proper Rx Mode and issue Rx Mode Update command */
-       vmxnet3_dev_set_rxmode(hw, VMXNET3_RXM_UCAST | VMXNET3_RXM_ALL_MULTI, 1);
+       vmxnet3_dev_set_rxmode(hw, VMXNET3_RXM_UCAST | VMXNET3_RXM_BCAST, 1);
 
        /*
         * Don't need to handle events for now