net: Refactor rtable initialization
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 2 Sep 2015 20:58:34 +0000 (13:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 19:01:40 +0000 (12:01 -0700)
commitd08c4f355403840fad98d9918db51a7113f38ee8
tree0ca7d2acb0a1b90cb4e9445220f033ea531da244
parent64d1def7d33856824d2c5c6fd6d4579d4d54bb87
net: Refactor rtable initialization

All callers to rt_dst_alloc have nearly the same initialization following
a successful allocation. Consolidate it into rt_dst_alloc.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c