On 6/2/2020 4:31 AM, Danielle Ratson wrote: > Test port split configuration using previously added number of port lanes > attribute. > > Check that all the splittable ports are successfully split to their maximum > number of lanes and below, and that those which are not splittable fail to > be split. > > Test output example: > > TEST: swp4 is unsplittable [ OK ] > TEST: split port swp53 into 4 [ OK ] > TEST: Unsplit port pci/0000:03:00.0/25 [ OK ] > TEST: split port swp53 into 2 [ OK ] > TEST: Unsplit port pci/0000:03:00.0/25 [ OK ] > > Signed-off-by: Danielle Ratson <daniel...@mellanox.com> > Reviewed-by: Petr Machata <pe...@mellanox.com> > --- > tools/testing/selftests/net/Makefile | 1 + > .../selftests/net/devlink_port_split.py | 259 ++++++++++++++++++ Any reason why this is written in python versus shell? -- Florian
- [RFC PATCH net-next 0/8] Expose devlink port attributes Danielle Ratson
- [RFC PATCH net-next 1/8] devlink: Move set attribute... Danielle Ratson
- [RFC PATCH net-next 2/8] devlink: Move switch_port a... Danielle Ratson
- [RFC PATCH net-next 4/8] mlxsw: Set number of port l... Danielle Ratson
- [RFC PATCH net-next 3/8] devlink: Replace devlink_po... Danielle Ratson
- [RFC PATCH net-next 8/8] selftests: net: Add port sp... Danielle Ratson
- Re: [RFC PATCH net-next 8/8] selftests: net: Add... Florian Fainelli
- Re: [RFC PATCH net-next 8/8] selftests: net:... Jakub Kicinski
- Re: [RFC PATCH net-next 8/8] selftests: ... Florian Fainelli
- Re: [RFC PATCH net-next 8/8] selfte... Petr Machata
- [RFC PATCH net-next 7/8] devlink: Add a new devlink ... Danielle Ratson
- [RFC PATCH net-next 5/8] devlink: Add a new devlink ... Danielle Ratson
- [RFC PATCH net-next 6/8] mlxsw: Set port split abili... Danielle Ratson
- Re: [RFC PATCH net-next 0/8] Expose devlink port att... Jakub Kicinski
- Re: [RFC PATCH net-next 0/8] Expose devlink port att... Jakub Kicinski
- Re: [RFC PATCH net-next 0/8] Expose devlink port... Jiri Pirko
- Re: [RFC PATCH net-next 0/8] Expose devlink ... Jakub Kicinski