RE: [PATCH iproute2-next 3/5] devlink: Supporting add and delete of devlink port

2021-02-01 Thread Parav Pandit
> From: David Ahern > Sent: Sunday, January 31, 2021 10:56 PM > > On 1/29/21 9:56 AM, Parav Pandit wrote: > > @@ -1383,6 +1389,37 @@ static int reload_limit_get(struct dl *dl, const > char *limitstr, > > return 0; > > } > > > > +static int port_flavour_parse(const char *flavour, uint16_t *

Re: [PATCH iproute2-next 3/5] devlink: Supporting add and delete of devlink port

2021-01-31 Thread David Ahern
On 1/29/21 9:56 AM, Parav Pandit wrote: > @@ -1383,6 +1389,37 @@ static int reload_limit_get(struct dl *dl, const char > *limitstr, > return 0; > } > > +static int port_flavour_parse(const char *flavour, uint16_t *value) > +{ > + if (!flavour) > + return -EINVAL; > + > +

[PATCH iproute2-next 3/5] devlink: Supporting add and delete of devlink port

2021-01-29 Thread Parav Pandit
Enable user to add and delete the devlink port. Examples for adding and deleting one SF port: Examples of add, show and delete commands: $ devlink dev eswitch set pci/:06:00.0 mode switchdev $ devlink port show pci/:06:00.0/65535: type eth netdev ens2f0np0 flavour physical port 0 splitt