Nationalism could be considered as a great love for ones own people. Or it could be seen as utter hatred towards any other people.
Racism is the same. It could be a preference for one's own race over other races, or it could be seen as a total antipathy towards other races.
Don't let your enemies define these terms for you. Let your nationalism and racism be based on love of your own kind. Love is a greater motivating factor than hate.
We don't need to hate our enemies, we only need to defeat them and secure our freedoms for us and our posterity.