netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Dietz <simon.dietz@plantwatch.de>
To: andrew@lunn.ch
Cc: andrew+netdev@lunn.ch, davem@davemloft.net,
	dietz23838@hs-ansbach.de, edumazet@google.com,
	johannes@sipsolutions.net, kuniyu@google.com,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
	simon.dietz@plantwatch.de
Subject: Re: [RFC PATCH net-next 0/6] net: add GeoNetworking protocol
Date: Fri, 17 Jul 2026 17:40:33 +0200	[thread overview]
Message-ID: <20260717154033.2092529-1-simon.dietz@plantwatch.de> (raw)
In-Reply-To: <9db571aa-4d5c-456a-ab24-796119c9807b@lunn.ch>

> I'm probably doing a deep dive too early, but ...
Thanks for your time and the fast response.

> Nothing new has been added to /proc for a long time. Please consider
> a different interface. I've not yet looked to see what is there, but
> networking now pretty much only uses netlink.

/proc has been used during the development of the gn module for passing
gps data from the user space to the kernel. This behaviour has been
changed to ioctl. Procfs has only been kept for debugging reasons. It
can safely be removed and will be in the next patch version.

> New IOCTL code is also very likely to be rejected. The functionality
> should go through netlink.

I'll take a look into netlink and rewrite the new IOCTL code.

> Generally, inline functions in a .c file are rejected. It is better
> to let the compiler decide. The exception would be if you have a
> benchmark which shows inline actually helps.

Noted. No inline functions (besides proven by benchmarks).

> This seems like debug. At minimum, it should be _dbg(), but maybe it
> should be removed altogether.

I thought to have changed all pr_info to pr_debug, this one slipped
through.

> When does this wrap around? Maybe add it as a comment.

Noted.

> Commented out code is not something we want in the kernel.

Indeed all BUG calls should have been removed with one of the
subsequent patches together with most of the commented out code. I'll
take another look to ensure all comment out code is removed.

> Maybe one of your later patches fixes this. We might want to consider
> squashing them, so the review is done on the final clean code.

That's good advice. I'll adhere to it.

> netdev uses reverse christmas tree, longest lines first, shortest
> last. It should apply to all functions.

Fixed in patch 6/6. And partially included in squashing subsequent
patches so they fully adhere to the coding style from the start.

> Not the sort of thing you normally see in the kernel.
> I've not looked at the code enough to see the big picture, but
> generally, the kernel routing table is static, and fed from a user
> space daemon. Should all this code be in user space?

In GeoNetworking routing decisions can be and are in non broadcast
situations based on the distance to the other vehicle/host. To be more
precise routing is based on if the reciever is in the same area as the
sender. If the sender needs to forward a packet to a reciever outside
its own range, it is forward to the intermediary closest to the
reciever.

That's kind of the core idea/feature of GeoNetworking. I don't see the
possibility to move this part into the userspace. But this does not
mean that there is no option at all.

>> static void debug_loc_te(void) ...
> debugfs? a netlink dump operation?

I'd like to keep this debug function for now. I agree that it should be
removed/changed in the final patch before an actual merge to net-next.

Simon

  reply	other threads:[~2026-07-17 15:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-16 13:58 [RFC PATCH net-next v0 0/6] net: add GeoNetworking protocol Simon Dietz
2026-07-16 13:58 ` [RFC PATCH net-next v0 1/6] " Simon Dietz
2026-07-16 15:39   ` [RFC PATCH net-next v0 2/6] net: fix GeoNetworking Simon Dietz
2026-07-16 15:49     ` [RFC PATCH net-next v0 3/6] net: further " Simon Dietz
2026-07-16 16:12       ` [RFC PATCH net-next v0 4/6] net: even " Simon Dietz
2026-07-16 16:16         ` [RFC PATCH net-next v0 5/6] net: add ppc64 support for GeoNetworking Simon Dietz
2026-07-16 16:21           ` [RFC PATCH net-next v0 6/6] net: apply RCS to GeoNetworking Simon Dietz
2026-07-16 16:39             ` Simon Dietz
2026-07-16 19:28     ` [RFC PATCH net-next v0 2/6] net: fix GeoNetworking Andrew Lunn
2026-07-16 19:17   ` [RFC PATCH net-next v0 1/6] net: add GeoNetworking protocol Andrew Lunn
2026-07-17 15:40     ` Simon Dietz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-07-15 12:45 [RFC PATCH net-next 0/6] " Simon Dietz
2026-07-15 19:09 ` Andrew Lunn
2026-07-16  8:26   ` Simon Dietz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260717154033.2092529-1-simon.dietz@plantwatch.de \
    --to=simon.dietz@plantwatch.de \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dietz23838@hs-ansbach.de \
    --cc=edumazet@google.com \
    --cc=johannes@sipsolutions.net \
    --cc=kuniyu@google.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).