]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: ovs: fix return type of ndo_start_xmit function
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 Sep 2018 09:15:38 +0000 (17:15 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commit6f12fdfa186c08c4ed141b60253b28aa08f9eb26
tree529297d9230c161329b308d4b6b19a6fa23cb130
parenta365573df243432dd2a8734439bcb14e035bb9fb
net: ovs: fix return type of ndo_start_xmit function

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit eddf11e18dff0e8671e06ce54e64cfc843303ab9 ]

The method ndo_start_xmit() is defined as returning an 'netdev_tx_t',
which is a typedef for an enum type, so make sure the implementation in
this driver has returns 'netdev_tx_t' value, and change the function
return type to netdev_tx_t.

Found by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/openvswitch/vport-internal_dev.c