Thread (39 messages) flat view 39 messages, 8 authors, 2016-09-25

Re: [PATCH RFC 1/3] xdp: Infrastructure to generalize XDP

From: Tom Herbert <hidden>
Date: 2016-09-20 22:49:52

On Tue, Sep 20, 2016 at 3:44 PM, Thomas Graf [off-list ref] wrote:
On 09/20/16 at 03:00pm, Tom Herbert wrote:
quoted
+static inline int __xdp_hook_run(struct list_head *list_head,
+                              struct xdp_buff *xdp)
+{
+     struct xdp_hook_ops *elem;
+     int ret = XDP_PASS;
+
+     list_for_each_entry(elem, list_head, list) {
+             ret = elem->hook(elem->priv, xdp);
+             if (ret != XDP_PASS)
+                     break;
+     }
Walking over a linear list? Really? :-) I thought this was supposed
to be fast, no compromises made.
Can you suggest an alternative?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help