I want to implement CAN HW filter in CAN driver.
As current can driver implementation is Network driver so can be accessed via socket.
So in this implementation CAN filter can be set at kernel level by using socket options.
I would like to use can Hw filter to reduce the load on CAN receive interrupt.
Since CAN is running at 1mbps. If load on CAN bus increases which increases the CAN interrupt rate in turn raise CPU load.
Please suggest which registers i need to change. if any patch is available for reference kindly share.