#include <linux/bitmap.h>
#include <linux/spinlock.h>
#include <linux/rcupdate.h>
#include <linux/bitmap.h>
#include <linux/spinlock.h>
#include <linux/rcupdate.h>
static const struct nla_policy canprio_policy[TCA_CANPRIO_MAX + 1] = {
[TCA_CANPRIO_CLASSID] = { .type = NLA_U32 },
//FIXME Be aware of possible problems with 64bit kernel and 32bit userspace etc.
static const struct nla_policy canprio_policy[TCA_CANPRIO_MAX + 1] = {
[TCA_CANPRIO_CLASSID] = { .type = NLA_U32 },
//FIXME Be aware of possible problems with 64bit kernel and 32bit userspace etc.
printk(" rules_count = %u\n", canprio_rules_count);
for (i = 0; i < canprio_rules_count; i++) {
/* FIXME: shouldn't use here the same logic as in
* can_rcv_filter() to filter for various combination
* of flags (EFF, RTR) */
printk(" rules_count = %u\n", canprio_rules_count);
for (i = 0; i < canprio_rules_count; i++) {
/* FIXME: shouldn't use here the same logic as in
* can_rcv_filter() to filter for various combination
* of flags (EFF, RTR) */
- if (canprio_rules[i].canid & CAN_EFF_FLAG) {
- err = canprio_eff_match_add(f, canprio_rules[i].canid, canprio_rules[i].canid_mask);
+ if (canprio_rules[i].can_id & CAN_EFF_FLAG) {
+ err = canprio_eff_match_add(f, canprio_rules[i].can_id, canprio_rules[i].can_mask);