net/virtio: fix LSC setting
authorJianfeng Tan <jianfeng.tan@intel.com>
Thu, 27 Apr 2017 07:35:37 +0000 (07:35 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 28 Apr 2017 05:01:17 +0000 (07:01 +0200)
commita60a0c15076224b664668c09a96922f9a2c6b142
treeaa8e5acdd325294ada0090f33d601577e2f6f176
parent554b6d3ef90d2c65a11523e72d768945baeebd41
net/virtio: fix LSC setting

LSC flag is set in several places, but only the last one takes effect;
so we remove the redundant ones and just keep the last one.

This also fixes the bug that dev_flags being overwritten by
rte_eth_copy_pci_info(), which resets it to 0 unconditionally.

Cc: stable@dpdk.org
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.c
drivers/net/virtio/virtio_pci.h