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

Jain's Congestion avoidance scheme PS + DTCP's APIs changes #682

Merged
merged 51 commits into from Jul 24, 2015

Conversation

lbergesio
Copy link

This PR addresses #642 but includes some a couple of more things:

-DTCP's sv_update operation has been removed from the DTCP's PS since it is a mechanism.
-Some DTCP's policies hooks' prototypes have been changed in order to accept a PCI instead of just a sequence number.

The Jain's CAS is selfcontained in /irati/plugins/cong_avoidance. It may still need some testing (mostly considering the incoming new feature of the shim-eth-vlan blocking N-1 ports). Nevertheless, this PR is required to be merged due to the changes affecting the stack listed below.

RED plugins directory has been removed since it will be introduced in a dedicated PR.

Please also, obviate the wrong format of the commit messages since they were done some time ago before the new conventions.

ACKs required in addition to myself:
F: MAINTAINERS
Marc Sune <marc.sune (at) bisdn.de>
F: linux/net/rina/rmt-ps-common.c
Miquel Tarzan <miquel.tarzan (at) i2cat.net>
F: linux/net/rina/rmt.c
Miquel Tarzan <miquel.tarzan (at) i2cat.net>

Leonardo Bergesio added 30 commits June 17, 2015 16:54
@miqueltarzan
Copy link
Contributor

ACK

I have reviewed all the code, since @lbergesio was the mantainer of most of the files.

sv_update policy and now in the dtcp_sv_update
@msune
Copy link
Contributor

msune commented Jul 15, 2015

Ack for maintainers

This completes the changes to fix IRATI#636. dtcp_sv_update should be
called with no lock to avoid calling dev_queue_xmit to be called when
sending a control pdu with some other lock taken.
Leonardo Bergesio and others added 13 commits July 21, 2015 12:20
DTP's write function was wrongly setting DRF flag by doing
pci_flags_set(pci, PDU_FLAGS_DATA_RUN);
kernel: red-ps: dtcp-ps: commented the case where DRF flag is expected
dtp_write was setting DRF flag by doing pci_flags &= PDU_FLAGS_DATA_RUN
when it must use |= operator.
in dtcp's ps, the rcv_vector controlling the arriving PDUs was not reset to 0s
if the new required size for it was not changed. Common operations while decision time
have been moved to a common place outside the if-else.
memeset operation done regardless new vector size.
… duration

In order to avoid setting the start of the *first* prev cycle to the time of
creation of the n1_port, based on a flag we set this time to a conf value.
@lbergesio
Copy link
Author

I did not realize that new commits on pristine-1.3 produces a minor conflict (MAINTEINERS). Now it is fixed and the PR could be merged

vmaffione pushed a commit that referenced this pull request Jul 24, 2015
Jain's Congestion avoidance scheme PS + DTCP's APIs changes
@vmaffione vmaffione merged commit 2dbf8c4 into IRATI:pristine-1.3 Jul 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants