]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/msg/async/dpdk/TCP.h
update sources to v12.1.0
[ceph.git] / ceph / src / msg / async / dpdk / TCP.h
index eb3c10490e645ad8e5f85b10a78a2def40d420ef..9923fab544db9636a915f6335c887d611922075e 100644 (file)
@@ -69,7 +69,7 @@ inline tcp_state operator|(tcp_state s1, tcp_state s2) {
   return tcp_state(uint16_t(s1) | uint16_t(s2));
 }
 
-inline std::ostream & operator<<(std::ostream & str, tcp_state s) {
+inline std::ostream & operator<<(std::ostream & str, const tcp_state& s) {
   switch (s) {
     case tcp_state::CLOSED: return str << "CLOSED";
     case tcp_state::LISTEN: return str << "LISTEN";
@@ -154,7 +154,7 @@ tcp_sequence hton(tcp_sequence ts) {
   return tcp_sequence { ::hton(ts.raw) };
 }
 
-inline std::ostream& operator<<(std::ostream& os, tcp_sequence s) {
+inline std::ostream& operator<<(std::ostream& os, const tcp_sequence& s) {
   return os << s.raw;
 }