[1/2] xsk: export xdp_get_umem_from_qid

Message ID 20181218134514.6388-1-jan.sokolowski@intel.com
State Accepted
Delegated to: Jeff Kirsher
Headers show
Series
  • [1/2] xsk: export xdp_get_umem_from_qid
Related show

Commit Message

Jan Sokolowski Dec. 18, 2018, 1:45 p.m.
Export xdp_get_umem_from_qid for other modules to use.

Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
---
 net/xdp/xdp_umem.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Björn Töpel Dec. 18, 2018, 2:48 p.m. | #1
Den tis 18 dec. 2018 kl 14:48 skrev Jan Sokolowski <jan.sokolowski@intel.com>:
>
> Export xdp_get_umem_from_qid for other modules to use.
>
> Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>

Adding netdev.

Acked-by: Björn Töpel <bjorn.topel@intel.com>

> ---
>  net/xdp/xdp_umem.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/net/xdp/xdp_umem.c b/net/xdp/xdp_umem.c
> index a264cf2accd0..424ae2538f9f 100644
> --- a/net/xdp/xdp_umem.c
> +++ b/net/xdp/xdp_umem.c
> @@ -60,6 +60,7 @@ struct xdp_umem *xdp_get_umem_from_qid(struct net_device *dev,
>
>         return NULL;
>  }
> +EXPORT_SYMBOL(xdp_get_umem_from_qid);
>
>  static void xdp_clear_umem_at_qid(struct net_device *dev, u16 queue_id)
>  {
> --
> 2.18.1
>
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@osuosl.org
> https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Bowers, AndrewX Dec. 19, 2018, 7:56 p.m. | #2
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On
> Behalf Of Jan Sokolowski
> Sent: Tuesday, December 18, 2018 5:45 AM
> To: intel-wired-lan@lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 1/2] xsk: export xdp_get_umem_from_qid
> 
> Export xdp_get_umem_from_qid for other modules to use.
> 
> Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
> ---
>  net/xdp/xdp_umem.c | 1 +
>  1 file changed, 1 insertion(+)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>

Patch

diff --git a/net/xdp/xdp_umem.c b/net/xdp/xdp_umem.c
index a264cf2accd0..424ae2538f9f 100644
--- a/net/xdp/xdp_umem.c
+++ b/net/xdp/xdp_umem.c
@@ -60,6 +60,7 @@  struct xdp_umem *xdp_get_umem_from_qid(struct net_device *dev,
 
 	return NULL;
 }
+EXPORT_SYMBOL(xdp_get_umem_from_qid);
 
 static void xdp_clear_umem_at_qid(struct net_device *dev, u16 queue_id)
 {