Thread (17 messages) 17 messages, 2 authors, 2018-05-31

Re: [bpf-next V1 PATCH 0/8] bpf/xdp: add flags argument to ndo_xdp_xmit and flag flush operation

From: Jesper Dangaard Brouer <hidden>
Date: 2018-05-31 07:39:21

On Wed, 30 May 2018 15:18:02 -0700
Song Liu [off-list ref] wrote:
Overall, this set looks good to me. The only suggestion I have is to add more
documentation on the expected behavior of XDP_XMIT_FLUSH in netdevice.h
(as part of 01/08).
I do see your point, as the behavior of XDP_XMIT_FLUSH is actually more
a "doorbell" functionality.  I still choose to call it "flush", because
it is replacing a function called ndo_xdp_flush, and providing the
exact same code-function as ndo_xdp_flush.  (IMHO it should have been
called ndo_xdo_doorbell).

Any opinions about renaming XDP_XMIT_FLUSH to XDP_XMIT_DOORBELL?

If you look at virtio_net and tun usage, the effect is a wakeup
(virtqueue_kick and sk_data_ready).   Still I like the name "doorbell"
better than "wakeup", as it also maps to NIC usage which often call
this "doorbell" or "tail" pointer update.

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help