[ovs-dev] [PATCH] netdev-afxdp: Fix missing init.

William Tu u9012063 at gmail.com
Mon May 4 23:16:03 UTC 2020


On Mon, May 04, 2020 at 10:58:06AM -0700, Gregory Rose wrote:
> 
> On 5/4/2020 9:28 AM, William Tu wrote:
> >When introducing the interrupt mode for netdev-afxdp, the netdev
> >init function is accidentally removed.  Fix it by adding it back.
> >
> >Fixes: 5bfc519fee499 ("netdev-afxdp: Add interrupt mode netdev class.")
> >Signed-off-by: William Tu <u9012063 at gmail.com>
> >---
> >  lib/netdev-linux.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> >diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
> >index 40d0cc1105ea..b52071e92ec7 100644
> >--- a/lib/netdev-linux.c
> >+++ b/lib/netdev-linux.c
> >@@ -3588,6 +3588,7 @@ const struct netdev_class netdev_internal_class = {
> >  #ifdef HAVE_AF_XDP
> >  #define NETDEV_AFXDP_CLASS_COMMON                               \
> >+    .init = netdev_afxdp_init,                                  \
> >      .construct = netdev_afxdp_construct,                        \
> >      .destruct = netdev_afxdp_destruct,                          \
> >      .get_stats = netdev_afxdp_get_stats,                        \
> >
> 
> Acked-by: Greg Rose <gvrose8192 at gmail.com>
Applied to master, thanks


More information about the dev mailing list