Skip to content

Commit 1079558

Browse files
AnonymousAnonymous
Anonymous
authored and
Anonymous
committed
ONCache added
1 parent 7d144b2 commit 1079558

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tc_prog/tc_prog_kern.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int tc_masq_func(struct __sk_buff *ctx) {
143143
goto out;
144144
}
145145

146-
// Use the local cache key to look up the egressinfo for masq
146+
// Use the nodeip to look up the egressinfo for masq
147147
struct egressinfo* egressinfo_ = bpf_map_lookup_elem(&egress_cache, nodeip_);
148148
if (!egressinfo_) {
149149
bpf_printkm("(tc_masq)WARNING: Can not find egressinfo. nodedip is %x", &nodeip_);

user_prog/set_map.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int fillup_init_map(const char* pin_dir, const char* file_name) {
5050
if (parse_mac(mac_str, devinfo_.mac) < 0) {
5151
return EXIT_FAIL_OPTION;
5252
}
53-
// Update data to sdpodip2restorekey map
53+
// Update data to devmap map
5454
err = update_map_element(pin_dir, "devmap", &key, &devinfo_);
5555
if (err) {
5656
printf("ERR: devmap\n");

0 commit comments

Comments
 (0)