X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fvport.c;h=994df7e65d754bcecd13cc1acb09a99f6771c6a0;hb=1fc7083dc49130065f23555d4812420ed3901677;hp=a78ebfa3aa131bc86ddf0fbd6b4422e339fdb2ce;hpb=78adaee10bbd72b337be3401018ea434c6cf9c7f;p=sliver-openvswitch.git diff --git a/datapath/vport.c b/datapath/vport.c index a78ebfa3a..994df7e65 100644 --- a/datapath/vport.c +++ b/datapath/vport.c @@ -285,29 +285,6 @@ void ovs_vport_del(struct vport *vport) vport->ops->destroy(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 *