All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH 1/7] ip-pool: Track IPv4 addresses in use
Date: Wed, 26 May 2021 18:33:20 -0500	[thread overview]
Message-ID: <6c921dd4-e993-0372-84fc-13c7328bbb30@gmail.com> (raw)
In-Reply-To: <CAOq732J2bNd5+BXfzpS3nfEJEJ9gdTVDztDvuDtYu9Ph7jzSTQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

Hi Andrew,

On 5/26/21 6:26 PM, Andrew Zaborowski wrote:
> On Thu, 27 May 2021 at 00:55, Denis Kenzior <denkenz@gmail.com> wrote:
>> On 5/26/21 5:36 PM, Andrew Zaborowski wrote:
>>> On Wed, 26 May 2021 at 23:56, Denis Kenzior <denkenz@gmail.com> wrote:
>>>>> Again, convenience, readability, better fit for the use case.  But
>>>>
>>>> readability? Yeah I don't buy that one ;)
>>>
>>> If you can write
>>>     ret_val = ip_pool_select_addr4(...);
>>>
>>>     do_some_maths(ret_val->addr)
>>>
>>
>> What maths are you performing and why?
> 
> Outside of ip_pool_select_addr4() itself (which will suffer internally
> too), there's some broadcast_from_ip() for example.

Just leave that.  Your argument of 'l_rtnl_address doesn't store the ifindex' is 
fair.  I would have solved this differently, but in the end implementation 
details are just that.

What I care about is the API, get that right and you can fix the rest later.

> 
> But fair enough that should go away if we switch to
> l_rtnl_ifaddr_add() (But again this is a change out of the scope of

That is what I thought.

> this patchset that I've been rewriting since before the big ap.h
> change to use an l_settings and other unrelated changes)

And I get that.  I feel your pain.  But then, we're adding a new module and I do 
want the APIs to be at least somewhat sorted from the very beginning.

Regards,
-Denis

      reply	other threads:[~2021-05-26 23:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25 12:55 [PATCH 1/7] ip-pool: Track IPv4 addresses in use Andrew Zaborowski
2021-05-25 12:55 ` [PATCH 2/7] ip-pool: Add subnet address selection logic Andrew Zaborowski
2021-05-26 19:56   ` Denis Kenzior
2021-05-26 20:06     ` Denis Kenzior
2021-05-26 21:50     ` Andrew Zaborowski
2021-05-25 12:55 ` [PATCH 3/7] ap: Refactor DHCP settings loading Andrew Zaborowski
2021-05-25 12:55 ` [PATCH 4/7] ap: Refactor global address pool loading Andrew Zaborowski
2021-05-25 12:55 ` [PATCH 5/7] ap: Send a specific error message on async AP start failure Andrew Zaborowski
2021-05-25 12:55 ` [PATCH 6/7] autotests: Update APRanges usage in testAP Andrew Zaborowski
2021-05-25 12:55 ` [PATCH 7/7] doc: Update AP settings in iwd.ap(5) and iwd.config(5) Andrew Zaborowski
2021-05-26 19:43 ` [PATCH 1/7] ip-pool: Track IPv4 addresses in use Denis Kenzior
2021-05-26 21:37   ` Andrew Zaborowski
2021-05-26 21:56     ` Denis Kenzior
2021-05-26 22:02       ` Denis Kenzior
2021-05-26 22:36       ` Andrew Zaborowski
2021-05-26 22:55         ` Denis Kenzior
2021-05-26 23:26           ` Andrew Zaborowski
2021-05-26 23:33             ` Denis Kenzior [this message]

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=6c921dd4-e993-0372-84fc-13c7328bbb30@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.