Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lwip/tcp.c: remove unused and duplicated code #906

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pasis
Copy link
Member

@pasis pasis commented Jul 22, 2020

tcp_abandon() calls tcp_pcb_remove() which calls tcp_pcb_purge(). Since
we can abandon only non LISTEN sockets, all segments lists are
guaranteed to be empty after tcp_pcb_remove(). Checking them is an
extra code.

external_ip_output() is not used anywhere and the code around this
function is dead.

@swx-jenkins2
Copy link

Test FAILed.
See http://hpc-master.lab.mtl.com:8080/job/accl-libvma-pr/3434/ for details (Mellanox internal link).

tcp_abandon() calls tcp_pcb_remove() which calls tcp_pcb_purge(). Since
we can abandon only non LISTEN sockets, all segments lists are
guaranteed to be empty after tcp_pcb_remove(). Checking them is an
extra code.

external_ip_output() is not used anywhere and the code around this
function is dead.

Signed-off-by: Dmytro Podgornyi <[email protected]>
@swx-jenkins2
Copy link

Test PASSed.
See http://hpc-master.lab.mtl.com:8080/job/accl-libvma-pr/3436/ for details (Mellanox internal link).

snd_wnd and ssthresh are reassigned later unconditionally.
Also, fix coding style of the code.

Signed-off-by: Dmytro Podgornyi <[email protected]>
@swx-jenkins5
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants