Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c223a078
Commit
c223a078
authored
Aug 23, 2014
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
virtio_net: Support netdev_ops->ndo_xmit_flush()
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
c1ebf46c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
drivers/net/virtio_net.c
drivers/net/virtio_net.c
+9
-1
No files found.
drivers/net/virtio_net.c
View file @
c223a078
...
...
@@ -934,7 +934,6 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
dev_kfree_skb_any
(
skb
);
return
NETDEV_TX_OK
;
}
virtqueue_kick
(
sq
->
vq
);
/* Don't wait up for transmitted skbs to be freed. */
skb_orphan
(
skb
);
...
...
@@ -957,6 +956,14 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
return
NETDEV_TX_OK
;
}
static
void
xmit_flush
(
struct
net_device
*
dev
,
u16
qnum
)
{
struct
virtnet_info
*
vi
=
netdev_priv
(
dev
);
struct
send_queue
*
sq
=
&
vi
->
sq
[
qnum
];
virtqueue_kick
(
sq
->
vq
);
}
/*
* Send command via the control virtqueue and check status. Commands
* supported by the hypervisor, as indicated by feature bits, should
...
...
@@ -1386,6 +1393,7 @@ static const struct net_device_ops virtnet_netdev = {
.
ndo_open
=
virtnet_open
,
.
ndo_stop
=
virtnet_close
,
.
ndo_start_xmit
=
start_xmit
,
.
ndo_xmit_flush
=
xmit_flush
,
.
ndo_validate_addr
=
eth_validate_addr
,
.
ndo_set_mac_address
=
virtnet_set_mac_address
,
.
ndo_set_rx_mode
=
virtnet_set_rx_mode
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment