net/mlx4: refactor interrupt FD settings
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 1 Sep 2017 08:06:52 +0000 (10:06 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commit35d02c543ae72914b06d74decbd8b6933cd59cfd
tree0b751a7b00e34eb78e60f146c2cad53c0aaa71ed
parent7446202428f5116ec57c1f12095f2f6b4996b2b5
net/mlx4: refactor interrupt FD settings

File descriptors used for interrupts processing must be made non-blocking.

Doing so as soon as they are opened instead of waiting until they are
needed is more efficient as it avoids performing redundant system calls and
run through their associated error-handling code later on.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/Makefile
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_utils.c [new file with mode: 0644]
drivers/net/mlx4/mlx4_utils.h