Don't forward packets received from TPU forwards port (#22078) (#22171)

* Don't forward packets received from TPU forwards port

* Add banking stage test

(cherry picked from commit b1d9a2e60e)

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2021-12-30 10:42:28 +08:00
committed by GitHub
parent 9c9d3e8b6b
commit 531f36c571
13 changed files with 209 additions and 53 deletions

View File

@ -18,7 +18,7 @@ pub const PACKET_DATA_SIZE: usize = 1280 - 40 - 8;
#[repr(C)]
pub struct Meta {
pub size: usize,
pub forward: bool,
pub forwarded: bool,
pub repair: bool,
pub discard: bool,
pub addr: [u16; 8],