net/mlx4: fix restriction on TCP/UDP flow rules
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 20 Oct 2017 12:39:58 +0000 (14:39 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commitcad92582d23886c4b9f8611da6f14577bad0b15d
treecc3b20a030c75e0ec74e4365c7965838f19c2508
parent373840beaf9054ff5880df8692344c35b2dc802b
net/mlx4: fix restriction on TCP/UDP flow rules

The code as currently written requires TCP/UDP source and destination
ports to be always specified.

No such restriction is enforced by hardware; all TCP and UDP traffic
can be matched by providing an empty mask for these fields.

Fixes: 680d5280c20b ("net/mlx4: refactor flow item validation code")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx4/mlx4_flow.c