Giter Club home page Giter Club logo

Comments (12)

psebexen avatar psebexen commented on July 17, 2024

New code has been pushed to reflect kernel version in 'upstream-submission' branch.
Compiles successfully, loads and unloads successfully, passes ibv_rc_pingpong (latter only tested with server and client as same machine due to limitations of my setup).

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

New code has been pushed and tested across multiple machines. Please let me know if you have any comments/questions about the changes.

from rxe-dev.

Kamalheib avatar Kamalheib commented on July 17, 2024

Hi Paul, I added some comments, please take a look 3a7308c

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

Thanks Kamal. I agree with all of your suggested changes; they should be corrected now in 327a12c.

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

Sorry; one more correction in 02ffc1b as well.

from rxe-dev.

Kamalheib avatar Kamalheib commented on July 17, 2024

Could you please amend all the fixes to [1] commit, this will help in the review process and make the git more clear.

[1] - 3a7308c

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

They are all combined in 2daaa9a. As a note, I had to delete two public commits to do this amendment (which is generally not recommended), so you may have to do a local reset to pull the new commit successfully.

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

Thank you for the new comments, Kamal. I will make the new changes and commit. I have two questions for you:

  1. Should I add the new commit as usual, or do you prefer I amend the last one again to keep the history clean?
  2. Is it safe to eliminate the lines explicitly setting newly initialized list item struct fields to 0 by replacing kmalloc with kzalloc? (I added them originally to guard against exceptions, e.g. in the net_info_list_add() function)

from rxe-dev.

Kamalheib avatar Kamalheib commented on July 17, 2024

Hello Paul,

Related to your questions:
1- I prefer to amend the changes so the history will be clean.
2- I'm sorry i didn't understand your questions, could you please give an example from the code.

Thanks,
Kamal

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

1 - Ok; thanks.

2 - Sorry for the confusing wording; I am curious if I can replace this code from the net_info list add() function:

net_info_item = kmalloc(sizeof(*net_info_item), GFP_KERNEL);
net_info_item->ifindex = index;
net_info_item->rxe = NULL;
net_info_item->status = 0;
net_info_item->port = 0;
net_info_item->ndev = NULL;
INIT_LIST_HEAD(&net_info_item->list);

with the following:

net_info_item = kzalloc(sizeof(*net_info_item), GFP_KERNEL);
net_info_item->ifindex = index;
INIT_LIST_HEAD(&net_info_item->list);

It appears kzalloc will do the "zeroing" automatically and the resulting code looks cleaner.

from rxe-dev.

Kamalheib avatar Kamalheib commented on July 17, 2024

I think that in this case you need to use kzalloc

from rxe-dev.

psebexen avatar psebexen commented on July 17, 2024

Outstanding corrections have been made and branch is rebased from 'master' to 'master-next'. Latest commit here: 1943c23.

from rxe-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.