diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2020-06-09 11:31:49 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-09 11:33:20 -0700 |
commit | 2d3b9d18e79c93dc3186b60de06ec587852c980f (patch) | |
tree | 9c798f1b4be5100041886e266f018332b6abcbcb /pkg/tcpip/stack/BUILD | |
parent | ecff24930cb2dd5b0910da859d6e712f2f1d32c4 (diff) |
Handle removed NIC in NDP timer for packet tx
NDP packets are sent periodically from NDP timers. These timers do not
hold the NIC lock when sending packets as the packet write operation
may take some time. While the lock is not held, the NIC may be removed
by some other goroutine. This change handles that scenario gracefully.
Test: stack_test.TestRemoveNICWhileHandlingRSTimer
PiperOrigin-RevId: 315524143
Diffstat (limited to 'pkg/tcpip/stack/BUILD')
-rw-r--r-- | pkg/tcpip/stack/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/BUILD b/pkg/tcpip/stack/BUILD index f71073207..afca925ad 100644 --- a/pkg/tcpip/stack/BUILD +++ b/pkg/tcpip/stack/BUILD @@ -110,5 +110,6 @@ go_test( "//pkg/sync", "//pkg/tcpip", "//pkg/tcpip/buffer", + "//pkg/tcpip/header", ], ) |