From: Wenzhuo Lu Date: Thu, 24 Mar 2016 07:07:46 +0000 (+0800) Subject: igb: fix address of device data pointer X-Git-Tag: spdx-start~7174 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2f5c0a4bc4f95c29231eea29f5407b1f84d6b4c3;p=dpdk.git igb: fix address of device data pointer In the function set_rx_mode, the pointer of device data points to the wrong address as found in ixgbe code, and fixed in commit: "ixgbe: fix PF promiscuous mode after VF closed" Fixes: be2d648a2dd3 ("igb: add PF support") Signed-off-by: Wenzhuo Lu Acked-by: Jingjing Wu --- diff --git a/drivers/net/e1000/igb_pf.c b/drivers/net/e1000/igb_pf.c index 95204e97ee..7f45a44da0 100644 --- a/drivers/net/e1000/igb_pf.c +++ b/drivers/net/e1000/igb_pf.c @@ -218,8 +218,7 @@ int igb_pf_host_configure(struct rte_eth_dev *eth_dev) static void set_rx_mode(struct rte_eth_dev *dev) { - struct rte_eth_dev_data *dev_data = - (struct rte_eth_dev_data*)dev->data->dev_private; + struct rte_eth_dev_data *dev_data = dev->data; struct e1000_hw *hw = E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private); uint32_t fctrl, vmolr = E1000_VMOLR_BAM | E1000_VMOLR_AUPE; uint16_t vfn = dev_num_vf(dev);