Skip to content

Commit 0c9f67f

Browse files
Fei Chenmeta-codesync[bot]
authored andcommitted
fix the decap macro
Summary: the encap is always gue so it doesn't make sense to use INLINE_DECAP_IPIP. this flavor is not used in production today. Changed it to INLINE_DECAP_GUE and added unit tests for decap. buck run //kernel/bpf-validation/gen_bpf_validation_targets:gen_bpf_validation_targets Reviewed By: p-shah256 Differential Revision: D92069194 fbshipit-source-id: 98cb2d6fc94ec6b396d87f5f2dda882440e895e4
1 parent 3079404 commit 0c9f67f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

katran/lib/bpf/balancer_consts.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -383,14 +383,6 @@ v2 tracks misses for TCP non syns */
383383
* LOCAL_DELIVERY_OPTIMIZATION - allow to do optimization on local traffic,
384384
* where vip and real address are specified the same machine
385385
*/
386-
#ifdef LPM_SRC_LOOKUP
387-
#ifndef INLINE_DECAP
388-
#ifndef INLINE_DECAP_GUE
389-
#define INLINE_DECAP
390-
#endif // of INLINE_DECAP_GUE
391-
#endif // of INLINE_DECAP
392-
#endif // of LPM_SRC_LOOKUP
393-
394386
#ifdef INLINE_DECAP
395387
#ifndef INLINE_DECAP_IPIP
396388
#define INLINE_DECAP_IPIP

0 commit comments

Comments
 (0)