summaryrefslogtreecommitdiffstats
path: root/src/vlib/pci/pci_config.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-10-12 17:41:14 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2023-10-13 10:39:10 +0000
commitc9275dadefe42418da3c15726f2a80a550b50156 (patch)
treefa05cda4eb1632aefd18a7bb621fc59d7ee3e4fd /src/vlib/pci/pci_config.h
parentbdeee2194b09c85ec1087550177555a24cc5d875 (diff)
vlib: allow unpriviledged vlib_pci_get_device_info()
When running unpriviledged sysfs allows reading only first 64 bytes of PCI config space. Change-Id: I62d18328925a2e4936406c2842154b20182cacb9 Type: improvement Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/pci/pci_config.h')
-rw-r--r--src/vlib/pci/pci_config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/pci/pci_config.h b/src/vlib/pci/pci_config.h
index 3501bde4214..21b40c0f499 100644
--- a/src/vlib/pci/pci_config.h
+++ b/src/vlib/pci/pci_config.h
@@ -247,9 +247,9 @@ typedef struct
#define _(a, b, ...) a b __VA_ARGS__;
foreach_pci_config_reg
#undef _
-} vlib_pci_config_mandatory_t;
+} vlib_pci_config_hdr_t;
-STATIC_ASSERT_SIZEOF (vlib_pci_config_mandatory_t, 64);
+STATIC_ASSERT_SIZEOF (vlib_pci_config_hdr_t, 64);
typedef union
{