diff options
| author | Jesper Dangaard Brouer <brouer@redhat.com> | 2018-06-05 07:55:50 -0400 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-06-05 08:03:16 -0400 |
| commit | 189454e868c45ce3476bfac03ace921dec34208a (patch) | |
| tree | 96a090754d90078b43b2797a1db3bece013d2a86 | |
| parent | 42421a56541a3b0fb6656406b657ad4686cdaaeb (diff) | |
net: remove net_device operation ndo_xdp_flush
All drivers are cleaned up and no references to ndo_xdp_flush
are left in drivers, it is time to remove the net_device_ops
operation ndo_xdp_flush.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
| -rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7f17785a59d7..42c6ea35a6f2 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1192,9 +1192,6 @@ struct dev_ifalias { | |||
| 1192 | * that got dropped are freed/returned via xdp_return_frame(). | 1192 | * that got dropped are freed/returned via xdp_return_frame(). |
| 1193 | * Returns negative number, means general error invoking ndo, meaning | 1193 | * Returns negative number, means general error invoking ndo, meaning |
| 1194 | * no frames were xmit'ed and core-caller will free all frames. | 1194 | * no frames were xmit'ed and core-caller will free all frames. |
| 1195 | * void (*ndo_xdp_flush)(struct net_device *dev); | ||
| 1196 | * This function is used to inform the driver to flush a particular | ||
| 1197 | * xdp tx queue. Must be called on same CPU as xdp_xmit. | ||
| 1198 | */ | 1195 | */ |
| 1199 | struct net_device_ops { | 1196 | struct net_device_ops { |
| 1200 | int (*ndo_init)(struct net_device *dev); | 1197 | int (*ndo_init)(struct net_device *dev); |
| @@ -1382,7 +1379,6 @@ struct net_device_ops { | |||
| 1382 | int (*ndo_xdp_xmit)(struct net_device *dev, int n, | 1379 | int (*ndo_xdp_xmit)(struct net_device *dev, int n, |
| 1383 | struct xdp_frame **xdp, | 1380 | struct xdp_frame **xdp, |
| 1384 | u32 flags); | 1381 | u32 flags); |
| 1385 | void (*ndo_xdp_flush)(struct net_device *dev); | ||
| 1386 | }; | 1382 | }; |
| 1387 | 1383 | ||
| 1388 | /** | 1384 | /** |
