kernel: add module for Mellanox mlx Network Driver
add module to support Mellanox Connect-X card mlx4 supports ConnectX-3 series and previous cards mlx5 supports Connect-IB/ConnectX-4 series and later cards Signed-off-by: Tan Zien <nabsdh9@gmail.com>
This commit is contained in:
		@@ -1090,3 +1090,38 @@ define KernelPackage/be2net/description
 | 
				
			|||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(eval $(call KernelPackage,be2net))
 | 
					$(eval $(call KernelPackage,be2net))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/mlx4-core
 | 
				
			||||||
 | 
					  SUBMENU:=$(NETWORK_DEVICES_MENU)
 | 
				
			||||||
 | 
					  TITLE:=Mellanox ConnectX(R) mlx4 core Network Driver
 | 
				
			||||||
 | 
					  DEPENDS:=@PCI_SUPPORT +kmod-ptp
 | 
				
			||||||
 | 
					  FILES:=$(LINUX_DIR)/drivers/net/ethernet/mellanox/mlx4/mlx4_core.ko
 | 
				
			||||||
 | 
					  KCONFIG:= CONFIG_MLX4_EN \
 | 
				
			||||||
 | 
						CONFIG_MLX4_CORE=y \
 | 
				
			||||||
 | 
						CONFIG_MLX4_CORE_GEN2=y \
 | 
				
			||||||
 | 
						CONFIG_MLX4_DEBUG=n
 | 
				
			||||||
 | 
					  AUTOLOAD:=$(call AutoProbe,mlx4_core)
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/mlx4-core/description
 | 
				
			||||||
 | 
					  Supports Mellanox ConnectX-3 series and previous cards
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call KernelPackage,mlx4-core))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/mlx5-core
 | 
				
			||||||
 | 
					  SUBMENU:=$(NETWORK_DEVICES_MENU)
 | 
				
			||||||
 | 
					  TITLE:=Mellanox ConnectX(R) mlx5 core Network Driver
 | 
				
			||||||
 | 
					  DEPENDS:=@PCI_SUPPORT +kmod-ptp
 | 
				
			||||||
 | 
					  FILES:=$(LINUX_DIR)/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko
 | 
				
			||||||
 | 
					  KCONFIG:= CONFIG_MLX5_CORE \
 | 
				
			||||||
 | 
						CONFIG_MLX5_CORE_EN=y \
 | 
				
			||||||
 | 
						CONFIG_MLX5_EN_RXNFC=y
 | 
				
			||||||
 | 
					  AUTOLOAD:=$(call AutoProbe,mlx5_core)
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define KernelPackage/mlx5-core/description
 | 
				
			||||||
 | 
					  Supports Mellanox Connect-IB/ConnectX-4 series and later cards
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call KernelPackage,mlx5-core))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user