-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sflow + dropmon] added 0003-psample-added-define-PSAMPLE_MD_EXTENDED…
…_ATTR.patch Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
- Loading branch information
1 parent
1f83896
commit 1f3e4cc
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
patch/0003-psample-added-define-PSAMPLE_MD_EXTENDED_ATTR.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 7dbf2689eb841c51dca4dad51b0941c06aa09e26 Mon Sep 17 00:00:00 2001 | ||
From: Vadym Hlushko <vadymh@nvidia.com> | ||
Date: Mon, 11 Apr 2022 15:41:46 +0000 | ||
Subject: [PATCH 3/3] psample: added define PSAMPLE_MD_EXTENDED_ATTR, used in SDK driver sx_psample.c | ||
|
||
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com> | ||
--- | ||
include/net/psample.h | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/include/net/psample.h b/include/net/psample.h | ||
index e328c5127..b7c79f634 100644 | ||
--- a/include/net/psample.h | ||
+++ b/include/net/psample.h | ||
@@ -14,6 +14,8 @@ struct psample_group { | ||
struct rcu_head rcu; | ||
}; | ||
|
||
+#define PSAMPLE_MD_EXTENDED_ATTR 1 | ||
+ | ||
struct psample_metadata { | ||
u32 trunc_size; | ||
int in_ifindex; | ||
-- | ||
2.17.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters