Clarify in documentation and code that IPV4 FIB add operation is used for both adding a new FIB entry to the device and for modifying an existing FIB entry on the device. Also, remove left-over references to ipv4_fib ops and replace with details on SWITCHDEV_PORT_IPV4_FIB object.
Showing the changes to net/switchdev (1 of 2 files). Show all
Unified · Split
| @@ -803,7 +803,7 @@ static struct net_device *switchdev_get_dev_by_nhs(struct fib_info *fi) · 802 unmodified lines | ||
| 803 | 803 | } |
| 804 | 804 | |
| 805 | 805 | /** |
| 806 | − * switchdev_fib_ipv4_add - Add IPv4 route entry to switch | |
| 806 | + * switchdev_fib_ipv4_add - Add/modify switch IPv4 route entry | |
| 807 | 807 | * |
| 808 | 808 | * @dst: route's IPv4 destination address |
| 809 | 809 | * @dst_len: destination address length (prefix length) |
| @@ -813,7 +813,7 @@ static struct net_device *switchdev_get_dev_by_nhs(struct fib_info *fi) · 3 unmodified lines | ||
| 813 | 813 | * @nlflags: netlink flags passed in (NLM_F_*) |
| 814 | 814 | * @tb_id: route table ID |
| 815 | 815 | * |
| 816 | − * Add IPv4 route entry to switch device. | |
| 816 | + * Add/modify switch IPv4 route entry. | |
| 817 | 817 | */ |
| 818 | 818 | int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, |
| 819 | 819 | u8 tos, u8 type, u32 nlflags, u32 tb_id) |