net/tap: remove NO-ARP setting

There is no reason not to support ARP on a tap netdevice. Remove
IFF_NOARP flags.
Focus on IFF_UP when a link status change is required.

Fixes: f457b472b1 ("net/tap: add link up and down operations")

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Pascal Mazon 2017-03-15 15:48:12 +01:00 committed by Ferruh Yigit
parent 223a29a25e
commit 9d4aabe66a

View File

@ -375,7 +375,7 @@ tap_link_set_down(struct rte_eth_dev *dev)
struct pmd_internals *pmd = dev->data->dev_private;
dev->data->dev_link.link_status = ETH_LINK_DOWN;
return tap_link_set_flags(pmd, IFF_UP | IFF_NOARP, 0);
return tap_link_set_flags(pmd, IFF_UP, 0);
}
static int
@ -384,7 +384,7 @@ tap_link_set_up(struct rte_eth_dev *dev)
struct pmd_internals *pmd = dev->data->dev_private;
dev->data->dev_link.link_status = ETH_LINK_UP;
return tap_link_set_flags(pmd, IFF_UP | IFF_NOARP, 1);
return tap_link_set_flags(pmd, IFF_UP, 1);
}
static int