diff options
author | Tony Lu <tonylu@linux.alibaba.com> | 2021-12-28 21:06:11 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-02 12:07:39 +0000 |
commit | de2fea7b39bfa1ee9db8726f7b71d54fec385d80 (patch) | |
tree | 7774c84bf647cf0475fd846e0101ef5009f8ee6e /net/smc/smc_core.c | |
parent | 79d39fc503b43b566feae5bc9a57dfcffdf41bd1 (diff) | |
download | linux-de2fea7b39bfa1ee9db8726f7b71d54fec385d80.tar.gz linux-de2fea7b39bfa1ee9db8726f7b71d54fec385d80.tar.bz2 linux-de2fea7b39bfa1ee9db8726f7b71d54fec385d80.zip |
net/smc: Print net namespace in log
This adds net namespace ID to the kernel log, net_cookie is unique in
the whole system. It is useful in container environment.
Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_core.c')
-rw-r--r-- | net/smc/smc_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index e47538451612..4ecf1c702b57 100644 --- a/net/smc/smc_core.c +++ b/net/smc/smc_core.c @@ -1552,9 +1552,9 @@ void smcr_lgr_set_type(struct smc_link_group *lgr, enum smc_lgr_type new_type) lgr_type = "ASYMMETRIC_LOCAL"; break; } - pr_warn_ratelimited("smc: SMC-R lg %*phN state changed: " + pr_warn_ratelimited("smc: SMC-R lg %*phN net %llu state changed: " "%s, pnetid %.16s\n", SMC_LGR_ID_SIZE, &lgr->id, - lgr_type, lgr->pnet_id); + lgr->net->net_cookie, lgr_type, lgr->pnet_id); } /* set new lgr type and tag a link as asymmetric */ |