History

switchdev: documentation: use switchdev_port_obj_xxx for IPv4 FIB add/modify/delete ops

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.

Scott Feldman committed 11 years ago

Commit 7616dcb1 parent 4b5364f2 files · +31 −26Browse files

Showing the changes to net/switchdev (1 of 2 files). Show all

Unified · Split

net/switchdev/switchdev.c+2−2
@@ -803,7 +803,7 @@ static struct net_device *switchdev_get_dev_by_nhs(struct fib_info *fi) · 802 unmodified lines
803803 }
804804
805805 /**
806− * switchdev_fib_ipv4_add - Add IPv4 route entry to switch
806+ * switchdev_fib_ipv4_add - Add/modify switch IPv4 route entry
807807 *
808808 * @dst: route's IPv4 destination address
809809 * @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
813813 * @nlflags: netlink flags passed in (NLM_F_*)
814814 * @tb_id: route table ID
815815 *
816− * Add IPv4 route entry to switch device.
816+ * Add/modify switch IPv4 route entry.
817817 */
818818 int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi,
819819 u8 tos, u8 type, u32 nlflags, u32 tb_id)