diff options
author | Jesse Gross <jesse@nicira.com> | 2013-01-25 13:42:01 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-01-28 10:26:32 -0800 |
commit | 1fc7083dc49130065f23555d4812420ed3901677 (patch) | |
tree | 8eb867f644209c4e73580085b3d0ed8e1c606691 /datapath/vport.c | |
parent | 78adaee10bbd72b337be3401018ea434c6cf9c7f (diff) | |
download | openvswitch-1fc7083dc49130065f23555d4812420ed3901677.tar.gz |
datapath: Remove vport MAC address configuration.
The ability to retrieve and set MAC addresses on vports is only
necessary for tunnel ports (the addresses for actual devices can be
retrieved through direct Linux mechanisms). Tunnel ports only used
the information for the purpose of generating path MTU discovery
packets, which has now been removed. Current userspace code already
reflects these changes, so this drops the functionality from the
kernel.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
Diffstat (limited to 'datapath/vport.c')
-rw-r--r-- | datapath/vport.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/datapath/vport.c b/datapath/vport.c index a78ebfa3a..994df7e65 100644 --- a/datapath/vport.c +++ b/datapath/vport.c @@ -286,29 +286,6 @@ void ovs_vport_del(struct vport *vport) } /** - * ovs_vport_set_addr - set device Ethernet address (for kernel callers) - * - * @vport: vport on which to set Ethernet address. - * @addr: New address. - * - * Sets the Ethernet address of the given device. Some devices may not support - * setting the Ethernet address, in which case the result will always be - * -EOPNOTSUPP. RTNL lock must be held. - */ -int ovs_vport_set_addr(struct vport *vport, const unsigned char *addr) -{ - ASSERT_RTNL(); - - if (!is_valid_ether_addr(addr)) - return -EADDRNOTAVAIL; - - if (vport->ops->set_addr) - return vport->ops->set_addr(vport, addr); - else - return -EOPNOTSUPP; -} - -/** * ovs_vport_set_stats - sets offset device stats * * @vport: vport on which to set stats |