Skip to content

Commit

Permalink
net: mana: Move header files to a common location
Browse files Browse the repository at this point in the history
In preparation to add MANA RDMA driver, move all the required header files
to a common location for use by both Ethernet and RDMA drivers.

Reviewed-by: Dexuan Cui <[email protected]>
Signed-off-by: Long Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Haiyang Zhang <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
  • Loading branch information
longlimsft authored and rleon committed Nov 10, 2022
1 parent d44089e commit fd325cd
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -9541,6 +9541,7 @@ F: include/asm-generic/hyperv-tlfs.h
F: include/asm-generic/mshyperv.h
F: include/clocksource/hyperv_timer.h
F: include/linux/hyperv.h
F: include/net/mana
F: include/uapi/linux/hyperv.h
F: net/vmw_vsock/hyperv_transport.c
F: tools/hv/
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/microsoft/mana/gdma_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <linux/utsname.h>
#include <linux/version.h>

#include "mana.h"
#include <net/mana/mana.h>

static u32 mana_gd_r32(struct gdma_context *g, u64 offset)
{
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/ethernet/microsoft/mana/hw_channel.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright (c) 2021, Microsoft Corporation. */

#include "gdma.h"
#include "hw_channel.h"
#include <net/mana/gdma.h>
#include <net/mana/hw_channel.h>

static int mana_hwc_get_msg_index(struct hw_channel_context *hwc, u16 *msg_id)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/microsoft/mana/mana_bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <linux/bpf_trace.h>
#include <net/xdp.h>

#include "mana.h"
#include <net/mana/mana.h>

void mana_xdp_tx(struct sk_buff *skb, struct net_device *ndev)
{
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/ethernet/microsoft/mana/mana_en.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <net/checksum.h>
#include <net/ip6_checksum.h>

#include "mana.h"
#include "mana_auxiliary.h"
#include <net/mana/mana.h>
#include <net/mana/mana_auxiliary.h>

static DEFINE_IDA(mana_adev_ida);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/microsoft/mana/mana_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <linux/etherdevice.h>
#include <linux/ethtool.h>

#include "mana.h"
#include <net/mana/mana.h>

static const struct {
char name[ETH_GSTRING_LEN];
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/microsoft/mana/shm_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <linux/io.h>
#include <linux/mm.h>

#include "shm_channel.h"
#include <net/mana/shm_channel.h>

#define PAGE_FRAME_L48_WIDTH_BYTES 6
#define PAGE_FRAME_L48_WIDTH_BITS (PAGE_FRAME_L48_WIDTH_BYTES * 8)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fd325cd

Please sign in to comment.