On Tue, Jan 16, 2018 at 06:59:31PM +0300, Timur Bogdanov wrote: > Hi, > > I'm trying to use dpdk with Mellanox ConnectX-3 Pro NIC. > I built PMD for it according to instructions on > "http://dpdk.org/doc/guides/nics/mlx4.html" and tried to launch > testpmd app but got following error: <snip> > PMD: net_mlx4: 0xda13c0: cannot attach flow rules (code 95, "Operation > not supported"), flow error type 2, cause 0x7f2869cdab80, message: > flow rule rejected by device > > Fail to start port 0 <snip> > What can be the reason of testpmd does not start correctly?
Did you provide by any chance -7 instead of -1 as a value for mlx4_core.ko's log_num_mgm_entry_size parameter (as recommended by the above documentation)? Timothy (CC'ed) reported that -7 does not quite work with the default flow rules (too many limitations) and results in the above error message. -1 should be used, -7 is only for specific use cases and should probably not even be documented in this file. -- Adrien Mazarguil 6WIND