-
Notifications
You must be signed in to change notification settings - Fork 168
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 missing patch for the sFlow + dropmon feature. (
#281) * [sflow + dropmon] Add patch which add Nvivia-specific flag for the psample driver Signed-off-by: Vadym Hlushko <vadymh@nvidia.com> * Correct patch name Signed-off-by: Vadym Hlushko <vadymh@nvidia.com> This defines the macro PSAMPLE_MD_EXTENDED_ATTR
- Loading branch information
1 parent
ca727d6
commit 3fe00d4
Showing
4 changed files
with
31 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
28 changes: 28 additions & 0 deletions
28
patch/0003-psample-define-the-macro-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,28 @@ | ||
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: Add Nvidia-specific wrapper function for the psample driver | ||
|
||
Add a variable to notify the psample driver to use a wrapper function, | ||
which does preprocess before sending the sample packet to the userspace application. | ||
|
||
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