mlx5: idiomatic use of preprocessor, in particular paths
MFC after: 1 week Sponsored by: NVIDIA Networking
This commit is contained in:
parent
ee9d634bd3
commit
12c56d7dc4
@ -34,8 +34,7 @@
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
/* Handling for queue buffers -- we allocate a bunch of memory and
|
||||
* register it in a memory region at HCA virtual address 0. If the
|
||||
|
@ -40,8 +40,7 @@
|
||||
#include <linux/ktime.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <dev/mlx5/cmd.h>
|
||||
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
static int mlx5_copy_from_msg(void *to, struct mlx5_cmd_msg *from, int size);
|
||||
static void mlx5_free_cmd_msg(struct mlx5_core_dev *dev,
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <rdma/ib_verbs.h>
|
||||
#include <dev/mlx5/cq.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
#include <sys/epoch.h>
|
||||
|
||||
|
@ -33,8 +33,8 @@
|
||||
#include <dev/mlx5/port.h>
|
||||
#include <dev/mlx5/mlx5_ifc.h>
|
||||
#include <dev/mlx5/mlx5_fpga/core.h>
|
||||
#include "mlx5_core.h"
|
||||
#include "eswitch.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/eswitch.h>
|
||||
|
||||
#ifdef RSS
|
||||
#include <net/rss_config.h>
|
||||
|
@ -34,8 +34,8 @@
|
||||
#include <dev/mlx5/vport.h>
|
||||
#include <dev/mlx5/fs.h>
|
||||
#include <dev/mlx5/mpfs.h>
|
||||
#include "mlx5_core.h"
|
||||
#include "eswitch.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/eswitch.h>
|
||||
|
||||
#define UPLINK_VPORT 0xFFFF
|
||||
|
||||
|
@ -34,8 +34,8 @@
|
||||
#include <dev/mlx5/device.h>
|
||||
#include <dev/mlx5/fs.h>
|
||||
|
||||
#include "fs_core.h"
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/fs_core.h>
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
int mlx5_cmd_update_root_ft(struct mlx5_core_dev *dev,
|
||||
enum fs_ft_type type,
|
||||
|
@ -30,8 +30,8 @@
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include "fs_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/fs_core.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/compiler.h>
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <linux/module.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
static int mlx5_cmd_query_adapter(struct mlx5_core_dev *dev, u32 *out,
|
||||
int outlen)
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <dev/mlx5/mlx5_ifc.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
#define MLX5_HEALTH_POLL_INTERVAL (2 * HZ)
|
||||
#define MAX_MISSES 3
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb,
|
||||
u16 opmod, u8 port)
|
||||
|
@ -47,9 +47,9 @@
|
||||
#include <dev/mlx5/mlx5_ifc.h>
|
||||
#include <dev/mlx5/mlx5_fpga/core.h>
|
||||
#include <dev/mlx5/mlx5_lib/mlx5.h>
|
||||
#include "mlx5_core.h"
|
||||
#include "eswitch.h"
|
||||
#include "fs_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/eswitch.h>
|
||||
#include <dev/mlx5/mlx5_core/fs_core.h>
|
||||
#ifdef PCI_IOV
|
||||
#include <sys/nv.h>
|
||||
#include <dev/pci/pci_iov.h>
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <rdma/ib_verbs.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn)
|
||||
{
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <dev/mlx5/mpfs.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
#define MPFS_LOCK(dev) spin_lock(&(dev)->mpfs.spinlock)
|
||||
#define MPFS_UNLOCK(dev) spin_unlock(&(dev)->mpfs.spinlock)
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
static int mlx5_relaxed_ordering_write;
|
||||
SYSCTL_INT(_hw_mlx5, OID_AUTO, relaxed_ordering_write, CTLFLAG_RWTUN,
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/delay.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
CTASSERT((uintptr_t)PAGE_MASK > (uintptr_t)PAGE_SIZE);
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn, u16 uid)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/port.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in,
|
||||
int size_in, void *data_out, int size_out,
|
||||
|
@ -31,10 +31,8 @@
|
||||
#include <linux/gfp.h>
|
||||
#include <dev/mlx5/qp.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
|
||||
#include "mlx5_core.h"
|
||||
|
||||
#include "transobj.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/transobj.h>
|
||||
|
||||
static struct mlx5_core_rsc_common *mlx5_get_rsc(struct mlx5_core_dev *dev,
|
||||
u32 rsn)
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
#ifdef RATELIMIT
|
||||
|
||||
|
@ -33,8 +33,8 @@
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <dev/mlx5/srq.h>
|
||||
#include <rdma/ib_verbs.h>
|
||||
#include "mlx5_core.h"
|
||||
#include "transobj.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/transobj.h>
|
||||
|
||||
void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type)
|
||||
{
|
||||
|
@ -32,9 +32,8 @@
|
||||
#include <linux/module.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <dev/mlx5/tls.h>
|
||||
|
||||
#include "mlx5_core.h"
|
||||
#include "transobj.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/transobj.h>
|
||||
|
||||
int mlx5_encryption_key_create(struct mlx5_core_dev *mdev, u32 pdn,
|
||||
const void *p_key, u32 key_len, u32 *p_obj_id)
|
||||
|
@ -29,9 +29,8 @@
|
||||
#include "opt_ratelimit.h"
|
||||
|
||||
#include <dev/mlx5/driver.h>
|
||||
|
||||
#include "mlx5_core.h"
|
||||
#include "transobj.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
#include <dev/mlx5/mlx5_core/transobj.h>
|
||||
|
||||
int mlx5_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn, u32 uid)
|
||||
{
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/io-mapping.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn)
|
||||
{
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <linux/etherdevice.h>
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include <dev/mlx5/vport.h>
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
static int mlx5_modify_nic_vport_context(struct mlx5_core_dev *mdev, void *in,
|
||||
int inlen);
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include "opt_ratelimit.h"
|
||||
|
||||
#include <dev/mlx5/driver.h>
|
||||
#include "wq.h"
|
||||
#include "mlx5_core.h"
|
||||
#include <dev/mlx5/mlx5_core/wq.h>
|
||||
#include <dev/mlx5/mlx5_core/mlx5_core.h>
|
||||
|
||||
u32 mlx5_wq_cyc_get_size(struct mlx5_wq_cyc *wq)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user