DPDK patches and discussions
 help / color / mirror / Atom feed
* af_xdp + libbpf 0.8
@ 2022-06-23 21:58 Thomas Monjalon
  2022-06-23 22:18 ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2022-06-23 21:58 UTC (permalink / raw)
  To: Ciara Loftus, Qi Zhang
  Cc: dev, david.marchand, ferruh.yigit, andrew.rybchenko

Hi,

It seems DPDK is not compatible with libbpf 0.8:

drivers/net/af_xdp/rte_eth_af_xdp.c:871:6: error: 'bpf_get_link_xdp_id' is deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead
/usr/include/bpf/libbpf.h:1168:1: note: 'bpf_get_link_xdp_id' has been explicitly marked deprecated here
LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_query_id() instead")

drivers/net/af_xdp/rte_eth_af_xdp.c:876:2: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
/usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here
LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")

dpdk/drivers/net/af_xdp/rte_eth_af_xdp.c:1198:8: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
/usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here
LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: af_xdp + libbpf 0.8
  2022-06-23 21:58 af_xdp + libbpf 0.8 Thomas Monjalon
@ 2022-06-23 22:18 ` Ferruh Yigit
  2022-06-24  1:26   ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2022-06-23 22:18 UTC (permalink / raw)
  To: Thomas Monjalon, Ciara Loftus, Qi Zhang
  Cc: dev, david.marchand, ferruh.yigit, andrew.rybchenko

On 6/23/2022 10:58 PM, Thomas Monjalon wrote:
> Hi,
> 
> It seems DPDK is not compatible with libbpf 0.8:
> 
> drivers/net/af_xdp/rte_eth_af_xdp.c:871:6: error: 'bpf_get_link_xdp_id' is deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead
> /usr/include/bpf/libbpf.h:1168:1: note: 'bpf_get_link_xdp_id' has been explicitly marked deprecated here
> LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_query_id() instead")
> 
> drivers/net/af_xdp/rte_eth_af_xdp.c:876:2: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
> /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here
> LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")
> 
> dpdk/drivers/net/af_xdp/rte_eth_af_xdp.c:1198:8: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
> /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here
> LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")
> 
> 
> 

 From af_xdp documentation (doc.dpdk.org/guides/nics/af_xdp.html):

5.2. Prerequisites
This is a Linux-specific PMD, thus the following prerequisites apply:

Both libxdp >=v1.2.2 and libbpf libraries installed, or, libbpf <=v0.6.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: af_xdp + libbpf 0.8
  2022-06-23 22:18 ` Ferruh Yigit
@ 2022-06-24  1:26   ` Thomas Monjalon
  2022-06-24  6:12     ` Loftus, Ciara
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2022-06-24  1:26 UTC (permalink / raw)
  To: Ferruh Yigit
  Cc: Ciara Loftus, Qi Zhang, dev, david.marchand, ferruh.yigit,
	andrew.rybchenko

24/06/2022 00:18, Ferruh Yigit:
> On 6/23/2022 10:58 PM, Thomas Monjalon wrote:
> > Hi,
> > 
> > It seems DPDK is not compatible with libbpf 0.8:
> > 
> > drivers/net/af_xdp/rte_eth_af_xdp.c:871:6: error: 'bpf_get_link_xdp_id' is deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead
> > /usr/include/bpf/libbpf.h:1168:1: note: 'bpf_get_link_xdp_id' has been explicitly marked deprecated here
> > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_query_id() instead")
> > 
> > drivers/net/af_xdp/rte_eth_af_xdp.c:876:2: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
> > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here
> > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")
> > 
> > dpdk/drivers/net/af_xdp/rte_eth_af_xdp.c:1198:8: error: 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
> > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been explicitly marked deprecated here
> > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")
> 
>  From af_xdp documentation (doc.dpdk.org/guides/nics/af_xdp.html):
> 
> 5.2. Prerequisites
> This is a Linux-specific PMD, thus the following prerequisites apply:
> 
> Both libxdp >=v1.2.2 and libbpf libraries installed, or, libbpf <=v0.6.0

I am in the first case: libxdp-1.2.3 and libbpf-0.8
According to the documentation, it should work.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: af_xdp + libbpf 0.8
  2022-06-24  1:26   ` Thomas Monjalon
@ 2022-06-24  6:12     ` Loftus, Ciara
  0 siblings, 0 replies; 4+ messages in thread
From: Loftus, Ciara @ 2022-06-24  6:12 UTC (permalink / raw)
  To: Thomas Monjalon, Ferruh Yigit
  Cc: Zhang, Qi Z, dev, david.marchand, ferruh.yigit, andrew.rybchenko

> 
> 24/06/2022 00:18, Ferruh Yigit:
> > On 6/23/2022 10:58 PM, Thomas Monjalon wrote:
> > > Hi,
> > >
> > > It seems DPDK is not compatible with libbpf 0.8:
> > >
> > > drivers/net/af_xdp/rte_eth_af_xdp.c:871:6: error: 'bpf_get_link_xdp_id'
> is deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead
> > > /usr/include/bpf/libbpf.h:1168:1: note: 'bpf_get_link_xdp_id' has been
> explicitly marked deprecated here
> > > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_query_id() instead")
> > >
> > > drivers/net/af_xdp/rte_eth_af_xdp.c:876:2: error: 'bpf_set_link_xdp_fd'
> is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
> > > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been
> explicitly marked deprecated here
> > > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")
> > >
> > > dpdk/drivers/net/af_xdp/rte_eth_af_xdp.c:1198:8: error:
> 'bpf_set_link_xdp_fd' is deprecated: libbpf v0.8+: use bpf_xdp_attach()
> instead
> > > /usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been
> explicitly marked deprecated here
> > > LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")
> >
> >  From af_xdp documentation (doc.dpdk.org/guides/nics/af_xdp.html):
> >
> > 5.2. Prerequisites
> > This is a Linux-specific PMD, thus the following prerequisites apply:
> >
> > Both libxdp >=v1.2.2 and libbpf libraries installed, or, libbpf <=v0.6.0
> 
> I am in the first case: libxdp-1.2.3 and libbpf-0.8
> According to the documentation, it should work.
> 

I submitted a fix to prevent linking with >=v0.8.0.
It can be used until the more robust solution is ready which requires a bit more validation.

Thanks,
Ciara

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-24  6:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 21:58 af_xdp + libbpf 0.8 Thomas Monjalon
2022-06-23 22:18 ` Ferruh Yigit
2022-06-24  1:26   ` Thomas Monjalon
2022-06-24  6:12     ` Loftus, Ciara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).