-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sflow + dropmon] Add patch which add Nvivia-specific flag for the ps…
…ample driver Signed-off-by: Vadym Hlushko <[email protected]>
- Loading branch information
1 parent
1f83896
commit f03f5fa
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-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,28 @@ | ||
From 7dbf2689eb841c51dca4dad51b0941c06aa09e26 Mon Sep 17 00:00:00 2001 | ||
From: Vadym Hlushko <[email protected]> | ||
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 <[email protected]> | ||
--- | ||
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