public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel•org>
To: Jakub Kicinski <kuba@kernel•org>
Cc: bpf@vger•kernel.org, netdev@vger•kernel.org, ast@kernel•org,
	daniel@iogearbox•net, andrii@kernel•org, davem@davemloft•net,
	hawk@kernel•org, pabeni@redhat•com, edumazet@google•com,
	toke@redhat•com, memxor@gmail•com, alardam@gmail•com,
	saeedm@nvidia•com, anthony.l.nguyen@intel•com,
	gospo@broadcom•com, vladimir.oltean@nxp•com, nbd@nbd•name,
	john@phrozen•org, leon@kernel•org, simon.horman@corigine•com,
	aelior@marvell•com, christophe.jaillet@wanadoo•fr,
	ecree.xilinx@gmail•com, mst@redhat•com, bjorn@kernel•org,
	magnus.karlsson@intel•com, maciej.fijalkowski@intel•com,
	intel-wired-lan@lists•osuosl.org, lorenzo.bianconi@redhat•com,
	niklas.soderlund@corigine•com
Subject: Re: [PATCH bpf-next 2/7] drivers: net: turn on XDP features
Date: Sun, 22 Jan 2023 12:49:20 +0100	[thread overview]
Message-ID: <Y80iwBNd3tPvEbMd@lore-desk> (raw)
In-Reply-To: <20230120191152.44d29bb1@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

> On Fri, 20 Jan 2023 18:16:51 +0100 Lorenzo Bianconi wrote:
> > +static inline void
> > +xdp_features_set_redirect_target(xdp_features_t *xdp_features, bool support_sg)
> > +{
> > +	*xdp_features |= NETDEV_XDP_ACT_NDO_XMIT;
> > +	if (support_sg)
> > +		*xdp_features |= NETDEV_XDP_ACT_NDO_XMIT_SG;
> > +}
> > +
> > +static inline void
> > +xdp_features_clear_redirect_target(xdp_features_t *xdp_features)
> > +{
> > +	*xdp_features &= ~(NETDEV_XDP_ACT_NDO_XMIT |
> > +			   NETDEV_XDP_ACT_NDO_XMIT_SG);
> > +}
> > +
> 
> Shouldn't these generate netlink notifications?

ack, I would say we need to add NETDEV_XDP_FEAT_CHANGE case in
netdev_genl_netdevice_event routine and maybe add a new
NETDEV_XDP_FEAT_CHANGE flag in netdev_cmd. What do you think?

Regards,
Lorenzo

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-01-22 11:49 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20 17:16 [PATCH bpf-next 0/7] xdp: introduce xdp-feature support Lorenzo Bianconi
2023-01-20 17:16 ` [PATCH bpf-next 1/7] netdev-genl: create a simple family for netdev stuff Lorenzo Bianconi
2023-01-21  1:19   ` Alexei Starovoitov
2023-01-22 17:45     ` Lorenzo Bianconi
2023-01-21  3:11   ` Jakub Kicinski
2023-01-22 23:00     ` Lorenzo Bianconi
2023-01-23 20:01       ` Jakub Kicinski
2023-01-23 23:29         ` Lorenzo Bianconi
2023-01-21  4:42   ` kernel test robot
2023-01-20 17:16 ` [PATCH bpf-next 2/7] drivers: net: turn on XDP features Lorenzo Bianconi
2023-01-21  3:11   ` Jakub Kicinski
2023-01-22 11:49     ` Lorenzo Bianconi [this message]
2023-01-23 20:03       ` Jakub Kicinski
2023-01-20 17:16 ` [PATCH bpf-next 3/7] xsk: add usage of XDP features flags Lorenzo Bianconi
2023-01-20 17:16 ` [PATCH bpf-next 4/7] libbpf: add the capability to specify netlink proto in libbpf_netlink_send_recv Lorenzo Bianconi
2023-01-20 17:16 ` [PATCH bpf-next 5/7] libbpf: add API to get XDP/XSK supported features Lorenzo Bianconi
2023-01-21  3:20   ` Jakub Kicinski
2023-01-22 12:09     ` Lorenzo Bianconi
2023-01-20 17:16 ` [PATCH bpf-next 6/7] bpf: devmap: check XDP features in bpf_map_update_elem and __xdp_enqueue Lorenzo Bianconi
2023-01-21  2:02   ` Martin KaFai Lau
2023-01-22 12:13     ` Lorenzo Bianconi
2023-01-23 20:09       ` Jakub Kicinski
2023-01-23 23:29         ` Lorenzo Bianconi
2023-01-20 17:16 ` [PATCH bpf-next 7/7] selftests/bpf: introduce XDP compliance test tool Lorenzo Bianconi
2023-01-24  6:34   ` Martin KaFai Lau
2023-01-24 11:12     ` Lorenzo Bianconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y80iwBNd3tPvEbMd@lore-desk \
    --to=lorenzo@kernel$(echo .)org \
    --cc=aelior@marvell$(echo .)com \
    --cc=alardam@gmail$(echo .)com \
    --cc=andrii@kernel$(echo .)org \
    --cc=anthony.l.nguyen@intel$(echo .)com \
    --cc=ast@kernel$(echo .)org \
    --cc=bjorn@kernel$(echo .)org \
    --cc=bpf@vger$(echo .)kernel.org \
    --cc=christophe.jaillet@wanadoo$(echo .)fr \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=davem@davemloft$(echo .)net \
    --cc=ecree.xilinx@gmail$(echo .)com \
    --cc=edumazet@google$(echo .)com \
    --cc=gospo@broadcom$(echo .)com \
    --cc=hawk@kernel$(echo .)org \
    --cc=intel-wired-lan@lists$(echo .)osuosl.org \
    --cc=john@phrozen$(echo .)org \
    --cc=kuba@kernel$(echo .)org \
    --cc=leon@kernel$(echo .)org \
    --cc=lorenzo.bianconi@redhat$(echo .)com \
    --cc=maciej.fijalkowski@intel$(echo .)com \
    --cc=magnus.karlsson@intel$(echo .)com \
    --cc=memxor@gmail$(echo .)com \
    --cc=mst@redhat$(echo .)com \
    --cc=nbd@nbd$(echo .)name \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=niklas.soderlund@corigine$(echo .)com \
    --cc=pabeni@redhat$(echo .)com \
    --cc=saeedm@nvidia$(echo .)com \
    --cc=simon.horman@corigine$(echo .)com \
    --cc=toke@redhat$(echo .)com \
    --cc=vladimir.oltean@nxp$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox