From: Jakub Kicinski <jakub.kicin...@netronome.com> Date: Fri, 27 Jul 2018 20:56:52 -0700
> From: John Hurley <john.hur...@netronome.com> > > Function nfp_flower_repr_get_type_and_port expects an enum nfp_repr_type > return value but, if the repr type is unknown, returns a value of type > enum nfp_flower_cmsg_port_type. This means that if FW encodes the port > ID in a way the driver does not understand instead of dropping the frame > driver may attribute it to a physical port (uplink) provided the port > number is less than physical port count. > > Fix this and ensure a net_device of NULL is returned if the repr can not > be determined. > > Fixes: 1025351a88a4 ("nfp: add flower app") > Signed-off-by: John Hurley <john.hur...@netronome.com> > Signed-off-by: Jakub Kicinski <jakub.kicin...@netronome.com> > --- > This is low impact and unlikely, but also fix is trivial so either > net or net-next works. Applied to 'net', thanks.