mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
nfp: bpf: lift the single-port limitation
Limiting the eBPF offload to a single port was a workaround required for the PoC application FW which has not been released externally. It's not necessary any more. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3a4b0129bf
commit
a52b35c39e
1 changed files with 0 additions and 8 deletions
|
@ -89,14 +89,6 @@ nfp_bpf_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int id)
|
||||||
struct nfp_net_bpf_priv *priv;
|
struct nfp_net_bpf_priv *priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Limit to single port, otherwise it's just a NIC */
|
|
||||||
if (id > 0) {
|
|
||||||
nfp_warn(app->cpp,
|
|
||||||
"BPF NIC doesn't support more than one port right now\n");
|
|
||||||
nn->port = nfp_port_alloc(app, NFP_PORT_INVALID, nn->dp.netdev);
|
|
||||||
return PTR_ERR_OR_ZERO(nn->port);
|
|
||||||
}
|
|
||||||
|
|
||||||
priv = kmalloc(sizeof(*priv), GFP_KERNEL);
|
priv = kmalloc(sizeof(*priv), GFP_KERNEL);
|
||||||
if (!priv)
|
if (!priv)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in a new issue