netifd: ip rule are deleted on reload
Username: Alban Bedel
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2296
Commit 5cf79759a24e9bb2a6a3aef7c83d73efb9bf2df3 (iprule: rework interface based rules to handle dynamic interfaces) broken the rule comparison function. Since then any unchanged rule get deleted on reload as the “new” rule doesn’t get added because it already exists and then the “old” one get deleted.
The attached patch fix the rule comparison which fix this bug.