summaryrefslogtreecommitdiff
path: root/src/network/networkd-bridge-fdb.c
Commit message (Collapse)AuthorAgeFilesLines
* network: re-design request queueYu Watanabe2022-03-111-3/+9
| | | | | | | | This makes Request object takes hash, compare, free, and process functions. With this change, the logic in networkd-queue.c can be mostly independent of the type of the request or the object (e.g. Address) assigned to the request, and it becomes simpler.
* network: introduce request_call_netlink_async()Yu Watanabe2022-03-111-14/+3
| | | | | | | | | | | | | | | | | | | | | In most netlink handlers, we do the following, 1. decrease the message counter, 2. check the link state, 3. error handling, 4. update link state via e.g. link_check_ready(). The first two steps are mostly common, hence let's extract it. Moreover, this is not only extracting the common logic, but provide a strong advantage; `request_call_netlink_async()` assigns the relevant Request object to the userdata of the netlink slot, and the request object has full information about the message we sent. Hence, in the future, netlink handler can print more detailed error message. E.g. when an address is failed to configure, then currently we only show an address is failed to configure, but with this commit, potentially we can show which address is failed explicitly. This does not change such error handling yet. But let's do that later.
* network: make request_process_address() and friends take Link and ↵Yu Watanabe2022-03-111-6/+3
| | | | | | | | | | | | | | | | | corresponding object This also renames e.g. request_process_address() -> address_process_request(). Also, this drops type checks such as `assert(req->type == REQUEST_TYPE_ADDRESS)`, as in the later commits, the function of processing request, e.g. `address_process_request()`, will be assigned to the Request object when it is created. And the request type will be used to distinguish and to avoid deduplicating requests which do not have any assigned objects, like REQUEST_TYPE_DHCP4_CLIENT. Hence, the type checks in process functions are mostly not necessary and redundant. This is mostly cleanups and preparation for later commits, and should not change any behavior.
* network: make address_configure() and friends take Request objectYu Watanabe2022-03-111-4/+4
| | | | | | This should not change any behavior. Just a preparation for a later commit which introduces request_call_netlink_async().
* network: move functionsYu Watanabe2022-02-251-27/+27
| | | | No functional change. Preparation for later commits.
* network: drop detailed log messagesYu Watanabe2022-02-251-18/+31
| | | | | | | This also renames netlink message `req` -> `m` for preparation of later commits. Follow-ups for #22014.
* network: rename NetworkConfigSection -> ConfigSectionYu Watanabe2022-01-191-5/+5
| | | | And move it and relevant functions to conf-parser.[ch].
* network: simplify logging in request_process_bridge_fdb()Zbigniew Jędrzejewski-Szmek2022-01-051-29/+33
|
* ether-addr-util: replace ether_addr_from_string() with parse_ether_addr()Yu Watanabe2021-11-091-1/+1
|
* network: rename Manager::links -> Manager::links_by_indexYu Watanabe2021-07-011-1/+1
| | | | This also renames link_get() -> link_get_by_index().
* network: bridge-fdb: add support to specify outgoing interfaceSusant Sahani2021-05-201-1/+90
|
* network: use queue to configure bridge FDBYu Watanabe2021-05-201-12/+47
|
* network: bridgeFDB: rename FdbEntry -> BridgeFDBYu Watanabe2021-05-201-0/+402