#include <linux/cpumask.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <linux/mlx4/driver.h>
#include <linux/mlx4/device.h>
#include <linux/mlx4/cmd.h>
#include "mlx4_en.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_VERSION(…);
static const char mlx4_en_version[] = …;
#define MLX4_EN_PARM_INT(X, def_val, desc) …
MLX4_EN_PARM_INT(udp_rss, 1,
"Enable RSS for incoming UDP traffic or disabled (0)");
MLX4_EN_PARM_INT(pfctx, 0, "Priority based Flow Control policy on TX[7:0]."
" Per priority bit mask");
MLX4_EN_PARM_INT(pfcrx, 0, "Priority based Flow Control policy on RX[7:0]."
" Per priority bit mask");
MLX4_EN_PARM_INT(inline_thold, MAX_INLINE,
"Threshold for using inline data (range: 17-104, default: 104)");
#define MAX_PFC_TX …
#define MAX_PFC_RX …
void en_print(const char *level, const struct mlx4_en_priv *priv,
const char *format, ...)
{ … }
void mlx4_en_update_loopback_state(struct net_device *dev,
netdev_features_t features)
{ … }
static void mlx4_en_get_profile(struct mlx4_en_dev *mdev)
{ … }
static int mlx4_en_event(struct notifier_block *this, unsigned long event,
void *param)
{ … }
static void mlx4_en_remove(struct auxiliary_device *adev)
{ … }
static int mlx4_en_probe(struct auxiliary_device *adev,
const struct auxiliary_device_id *id)
{ … }
static const struct auxiliary_device_id mlx4_en_id_table[] = …;
MODULE_DEVICE_TABLE(auxiliary, mlx4_en_id_table);
static struct mlx4_adrv mlx4_en_adrv = …;
static void mlx4_en_verify_params(void)
{ … }
static int __init mlx4_en_init(void)
{ … }
static void __exit mlx4_en_cleanup(void)
{ … }
module_init(…) …;
module_exit(mlx4_en_cleanup);