]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ice: add virt/ and move ice_virtchnl* files there
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Wed, 20 Aug 2025 10:39:20 +0000 (12:39 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 25 Aug 2025 08:59:57 +0000 (10:59 +0200)
Introduce virt/ directory to collect virtchnl files.
We are going to implement a few sizable extensions soon, each of them
increasing virt/ size, so it looks sensible to introduce a new dir.

Suggested-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/Makefile
drivers/net/ethernet/intel/ice/ice_sriov.c
drivers/net/ethernet/intel/ice/ice_sriov.h
drivers/net/ethernet/intel/ice/ice_vf_lib.c
drivers/net/ethernet/intel/ice/ice_vf_lib.h
drivers/net/ethernet/intel/ice/virt/allowlist.c [moved from drivers/net/ethernet/intel/ice/ice_virtchnl_allowlist.c with 99% similarity]
drivers/net/ethernet/intel/ice/virt/allowlist.h [moved from drivers/net/ethernet/intel/ice/ice_virtchnl_allowlist.h with 100% similarity]
drivers/net/ethernet/intel/ice/virt/fdir.c [moved from drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c with 100% similarity]
drivers/net/ethernet/intel/ice/virt/fdir.h [moved from drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.h with 100% similarity]
drivers/net/ethernet/intel/ice/virt/virtchnl.c [moved from drivers/net/ethernet/intel/ice/ice_virtchnl.c with 99% similarity]
drivers/net/ethernet/intel/ice/virt/virtchnl.h [moved from drivers/net/ethernet/intel/ice/ice_virtchnl.h with 100% similarity]

index d0f9c949236382f185997211e87879a2537cc8c8..f1395282a893fcc97e0107c1683e1341c4278327 100644 (file)
@@ -47,9 +47,9 @@ ice-y := ice_main.o   \
         ice_adapter.o
 ice-$(CONFIG_PCI_IOV) +=       \
        ice_sriov.o             \
-       ice_virtchnl.o          \
-       ice_virtchnl_allowlist.o \
-       ice_virtchnl_fdir.o     \
+       virt/virtchnl.o         \
+       virt/allowlist.o        \
+       virt/fdir.o             \
        ice_vf_mbx.o            \
        ice_vf_vsi_vlan_ops.o   \
        ice_vf_lib.o
index 9ce4c4db400e1239edf974ae85d27da3abf4c083..843e82fd3bf936106fcf1f63508d00402ccd5dfa 100644 (file)
@@ -9,7 +9,7 @@
 #include "ice_dcb_lib.h"
 #include "ice_flow.h"
 #include "ice_eswitch.h"
-#include "ice_virtchnl_allowlist.h"
+#include "virt/allowlist.h"
 #include "ice_flex_pipe.h"
 #include "ice_vf_vsi_vlan_ops.h"
 #include "ice_vlan.h"
index d1a998a4bef64c4d573abc8c3489e12d7d7a4471..6c4fad09a5278d8cc4b79afc305291231c7b1721 100644 (file)
@@ -3,9 +3,9 @@
 
 #ifndef _ICE_SRIOV_H_
 #define _ICE_SRIOV_H_
-#include "ice_virtchnl_fdir.h"
+#include "virt/fdir.h"
 #include "ice_vf_lib.h"
-#include "ice_virtchnl.h"
+#include "virt/virtchnl.h"
 
 /* Static VF transaction/status register def */
 #define VF_DEVICE_STATUS               0xAA
index 5ee74f3e82dc77ba400fe4aa6d1cb6a183f85785..de9e81ccee664359d6d62bc73ec06e34e9f6d213 100644 (file)
@@ -5,7 +5,7 @@
 #include "ice.h"
 #include "ice_lib.h"
 #include "ice_fltr.h"
-#include "ice_virtchnl_allowlist.h"
+#include "virt/allowlist.h"
 
 /* Public functions which may be accessed by all driver files */
 
index ffe1f9f830ead1a4b065c5ee0df5756293d6ba64..b007089071767ed56e6e192a2e53ac5c08dd76e3 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/avf/virtchnl.h>
 #include "ice_type.h"
 #include "ice_flow.h"
-#include "ice_virtchnl_fdir.h"
+#include "virt/fdir.h"
 #include "ice_vsi_vlan_ops.h"
 
 #define ICE_MAX_SRIOV_VFS              256
similarity index 99%
rename from drivers/net/ethernet/intel/ice/ice_virtchnl_allowlist.c
rename to drivers/net/ethernet/intel/ice/virt/allowlist.c
index 4c2ec2337b38381a95a0c61537d8509080b76453..a07efec19c4592bcd5e3dfb835042dac4836581b 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (C) 2021, Intel Corporation. */
 
-#include "ice_virtchnl_allowlist.h"
+#include "allowlist.h"
 
 /* Purpose of this file is to share functionality to allowlist or denylist
  * opcodes used in PF <-> VF communication. Group of opcodes:
similarity index 99%
rename from drivers/net/ethernet/intel/ice/ice_virtchnl.c
rename to drivers/net/ethernet/intel/ice/virt/virtchnl.c
index 25796727307978a89815e94caf6fa75030426658..a6d0a9c98d5454291b6c406cfb14788fc173633f 100644 (file)
@@ -1,13 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (C) 2022, Intel Corporation. */
 
-#include "ice_virtchnl.h"
+#include "virtchnl.h"
 #include "ice_vf_lib_private.h"
 #include "ice.h"
 #include "ice_base.h"
 #include "ice_lib.h"
 #include "ice_fltr.h"
-#include "ice_virtchnl_allowlist.h"
+#include "allowlist.h"
 #include "ice_vf_vsi_vlan_ops.h"
 #include "ice_vlan.h"
 #include "ice_flex_pipe.h"