can: cangw: introduce optional uid to reference created routing jobs
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 9 Jun 2015 06:05:10 +0000 (08:05 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 9 Jun 2015 07:39:49 +0000 (09:39 +0200)
commitdd895d7f21b244e7fd4c7477697e274de7e44ecb
treeb394338cd863db6e14ea822458cf84dd6cc70022
parent3d5db5e1310981ce7da570f7e686f3ff22c58b4b
can: cangw: introduce optional uid to reference created routing jobs

Similar to referencing iptables rules by their line number this UID allows to
reference created routing jobs, e.g. to alter configured data modifications.

The UID is an optional non-zero value which can be provided at routing job
creation time. When the UID is set the UID replaces the data modification
configuration as job identification attribute e.g. at job removal time.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/uapi/linux/can/gw.h
net/can/gw.c