[sflow + dropmon] add a condition before applying patches for the drop-monitor kernel module#284
Conversation
c349f27 to
71129cd
Compare
…p-monitor kernel module Signed-off-by: Vadym Hlushko <[email protected]>
71129cd to
32f7558
Compare
|
@saiarcot895 could you please review? |
|
@paulmenzel @saiarcot895 could you please help to review this one? |
|
Hmm, is it possible to support both APIs (one where |
I don't think it is possible because of the reasons:
|
|
I'm suggesting the following:
This will allow existing callers of |
According to the It means, that if I will implement as you proposed, I anyway need to change a default function signature to: Also, it will require me to delete |
Not necessarily. The newly-added attributes don't need to be specified by the caller. The This would mean that the function signature would remain the same, but before calling @lguohan thoughts on this?
I think that patch could remain, but yes, Mellanox SDK driver code would then need to be changed. |
I don't understand how it is supposed to work if we need to set For example, the |
|
/easycla |
|
|
Signed-off-by: Vadym Hlushko [email protected]
What I did
Added a condition before applying patches for the drop-monitor kernel module
Why I did it
If we apply patches from
patch/drop-monitor/serieswithout a condition theAzure pipelines CIwon't pass to the other vendors (for example forBroadcom), because those patches change a signature for some functions which is used in other vendors' SDK.So, before enabling the
ENABLE_SFLOW_DROPMONflag for SONiC the other vendors should align their SDK.