diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2013-12-11 13:27:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-12 13:38:39 -0500 |
commit | 2f6a1b6607fd6b0eb9501843a40e0c7555f37b4a (patch) | |
tree | 80d2a3c5c9396bdd07c751eaa2ccfd42cd9c87c2 /drivers/net/macvtap.c | |
parent | 6acf54f1cf0a6747bac9fea26f34cfc5a9029523 (diff) |
macvlan: Remove custom recieve and forward handlers
Since now macvlan and macvtap use the same receive and
forward handlers, we can remove them completely and use
netif_rx and dev_forward_skb() directly.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvtap.c')
-rw-r--r-- | drivers/net/macvtap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 85ecfccf9c60..64409af0da31 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c | |||
@@ -400,8 +400,7 @@ static int macvtap_newlink(struct net *src_net, | |||
400 | /* Don't put anything that may fail after macvlan_common_newlink | 400 | /* Don't put anything that may fail after macvlan_common_newlink |
401 | * because we can't undo what it does. | 401 | * because we can't undo what it does. |
402 | */ | 402 | */ |
403 | return macvlan_common_newlink(src_net, dev, tb, data, | 403 | return macvlan_common_newlink(src_net, dev, tb, data); |
404 | netif_rx, dev_forward_skb); | ||
405 | } | 404 | } |
406 | 405 | ||
407 | static void macvtap_dellink(struct net_device *dev, | 406 | static void macvtap_dellink(struct net_device *dev, |