You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code structure:
The current structure is very flat, e.g. object files are placed in the same directory as c-files. A suggestion here is to mimic the ODP structure.
o Lightly modified software e.g. AVL, hash, etc. Would it be beneficial to migrate into a third_party/ directory as a pristine copy where it is easy to maintain and upgrade, then have ‘helpers’ in src/ ?
There is no /src/net/ folder as it's functionality was not ported from BSD. There are no files that could go in a /net/ similar to BSD code. Discussed with Bogdan that we need to have some files in /src/ as a place to start. The code that is now in /src/ is the init and core of packet processing that is not BSD like.
Same reason as above(non BSD) and the fact that ARP is more related to a /net/ folder than a /netinet/ folder
Final deliverable destination can be controlled at build time. Now, temporary object files are in the same directory as .c file, while libraries are in /lib/. We could change to have all object files in /obj/, but ODP also has these temporary objects with the c code. This is a simpler change that can be applied in the configure build files.
As all headers are with .c files we don't use an include directory as ODP. We have some debate weather to have this directory named api or include. For me it's clearer with "api" that this directory is for external use rather than internal when use "include". include/api will have an empty include directory and it's taking longer to browse through the code.
Yes. Makefile remains where it is now in the root.
OK, one minor comment, with the current layout there will be a mix of files belonging to IPv4 and IPv6 in the /src/ folder, e.g. ofp_ndp.c when it is implemented.
Not sure which is the best. Let me explain my reasoning and see which is
better. For me using "api" shows that this directory is for external
interface only. When using "include" someone might not realize that this is
an external API. Leaving "include/api" as we have now, will have an empty
"include" directory and it's taking longer to browse through this
directory. Of course ODP has include directory but headers are in
"include/odp/api" directory.
I don't have any specific preference to this either. As a suggest, we can
start using api as you plan, and we can rethink anything later.
Do we think that all code outside of this 'linux' directory is free of
Linux or platform-specific code & assumptions?
Yes. All code outside of linux/ should be free of Linux. All code outside of
this directory should be ODP-only dependent and some standard C
headers(available in all platforms). The only case where this might not be
100% true is the CLI case, where it creates sockets to Linux stack. But
this code is also divided as a cli/ directory and can be easily
disconnected.
To have less directories in src and to show that it can be disconnected from
OFP it was inside the /util/ directory. Also being in util/ directory shows
this CLI to be a useful functionality. Do we still agree to move it in
/src/ folder ?
│ │ │ └── ofp_cli*.[c|h]
test/ or src/test/ ?
test/ as in ODP ?
-- IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose the
contents to any other person, use it for any purpose, or store or copy
the information in any medium. Thank you.
Note: the issue was created automatically with bugzilla2github tool
Bugzilla Bug ID: 54
Date: 2015-10-21 11:54:29 +0200
From: Sorin Vultureanu <sorin.vultureanu@enea.com>
To: Sorin Vultureanu <sorin.vultureanu@enea.com>
CC: rasmuss.graaf@enea.com
Last updated: 2015-11-26 12:45:56 +0100
Bugzilla Comment ID: 66
Date: 2015-10-21 11:54:29 +0200
From: Sorin Vultureanu <sorin.vultureanu@enea.com>
Code structure:
The current structure is very flat, e.g. object files are placed in the same directory as c-files. A suggestion here is to mimic the ODP structure.
Bugzilla Comment ID: 67
Date: 2015-10-21 11:57:46 +0200
From: Sorin Vultureanu <sorin.vultureanu@enea.com>
o Lightly modified software e.g. AVL, hash, etc. Would it be beneficial to migrate into a third_party/ directory as a pristine copy where it is easy to maintain and upgrade, then have ‘helpers’ in src/ ?
Bugzilla Comment ID: 85
Date: 2015-10-23 15:51:50 +0200
From: Rasmuss <rasmuss.graaf@enea.com>
Created attachment 1
OFP source file structure proposal
Attached OFP source file strucutre proposal
Bugzilla Comment ID: 107
Date: 2015-11-13 14:33:43 +0100
From: Sorin Vultureanu <sorin.vultureanu@enea.com>
Created attachment 2
OFP tree proposal sent on mailing list for review
attached OFP tree proposal sent on mailing list for review
Bugzilla Comment ID: 108
Date: 2015-11-13 18:51:14 +0100
From: Rasmuss <rasmuss.graaf@enea.com>
Hi,
Looks good!
My comments
BR
/Rasmuss
Bugzilla Comment ID: 109
Date: 2015-11-13 18:52:12 +0100
From: Rasmuss <rasmuss.graaf@enea.com>
Hi,
Looks good!
My comments
BR
/Rasmuss
Bugzilla Comment ID: 110
Date: 2015-11-16 12:04:15 +0100
From: Sorin Vultureanu <sorin.vultureanu@enea.com>
Hi,
BR,
Sorin
Bugzilla Comment ID: 112
Date: 2015-11-17 15:53:58 +0100
From: Rasmuss <rasmuss.graaf@enea.com>
Hi,
OK, one minor comment, with the current layout there will be a mix of files belonging to IPv4 and IPv6 in the /src/ folder, e.g. ofp_ndp.c when it is implemented.
BR
/Rasmuss
Bugzilla Comment ID: 146
Date: 2015-11-26 12:45:42 +0100
From: Sorin Vultureanu <sorin.vultureanu@enea.com>
Created attachment 3
OFP tree proposal REVIEWED on the list with Nokia and ARM
On 11/17/2015 10:41 AM, José Pekkarinen wrote:
The text was updated successfully, but these errors were encountered: