From: "Szapar-Mudlaw, Martyna" <martyna.szapar-mudlaw@linux.intel.com>
To: "Fijalkowski, Maciej" <maciej.fijalkowski@intel.com>,
"intel-wired-lan@lists.osuosl.org"
<intel-wired-lan@lists.osuosl.org>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"Kitszel, Przemyslaw" <przemyslaw.kitszel@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next] ixgbe: Enable XDP support when SRIOV is enabled
Date: Mon, 25 Nov 2024 21:19:22 +0100 [thread overview]
Message-ID: <c661b2cb-871e-48da-80e6-df7d011024fd@linux.intel.com> (raw)
In-Reply-To: <DM4PR11MB61173CA962D7D88040365DA082232@DM4PR11MB6117.namprd11.prod.outlook.com>
On 11/22/2024 4:56 PM, Fijalkowski, Maciej wrote:
>> Remove the check that prevents XDP support when SRIOV is enabled.
>> There is no reason to completely forbid the user from using XDP
>> with SRIOV.
> I think we need some more context here in commit message.
> ixgbe HW was really short on HW queues that's why probably this restriction
> was introduced in the first place.
>
> Now I believe that driver has an ability to share XDP Tx resources with locking
> being involved and that's why you can relax the previous limitation.
>
> Correct?
Right, ixgbe hardware has a limited number of hw queues. There is
locking in place now. The reasoning behind this change is to give users
the flexibility to use XDP with SRIOV, there may be use cases for such
constrained scenarios, where this tradeoff is acceptable...
I'll update commit msg.
>
>> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
>> Signed-off-by: Martyna Szapar-Mudlaw <martyna.szapar-
>> mudlaw@linux.intel.com>
>>
>> ---
>>
>> Added CC netdev
>>
>> ---
>> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 3 ---
>> 1 file changed, 3 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
>> b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
>> index 459a539cf8db..a07e28107a42 100644
>> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
>> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
>> @@ -10637,9 +10637,6 @@ static int ixgbe_xdp_setup(struct net_device
>> *dev, struct bpf_prog *prog)
>> bool need_reset;
>> int num_queues;
>>
>> - if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED)
>> - return -EINVAL;
>> -
>> if (adapter->flags & IXGBE_FLAG_DCB_ENABLED)
>> return -EINVAL;
>>
>> --
>> 2.36.1
>>
next prev parent reply other threads:[~2024-11-25 20:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 12:13 [Intel-wired-lan] [PATCH iwl-next] ixgbe: Enable XDP support when SRIOV is enabled Martyna Szapar-Mudlaw
2024-11-22 15:56 ` Fijalkowski, Maciej
2024-11-25 20:19 ` Szapar-Mudlaw, Martyna [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-19 12:33 Martyna Szapar-Mudlaw
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=c661b2cb-871e-48da-80e6-df7d011024fd@linux.intel.com \
--to=martyna.szapar-mudlaw@linux.intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=maciej.fijalkowski@intel.com \
--cc=netdev@vger.kernel.org \
--cc=przemyslaw.kitszel@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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